@@ -144,7 +144,7 @@ public function getRequest()
144144 * Returns self.
145145 * @return Presenter
146146 */
147- public function getPresenter ($ need = TRUE )
147+ public function getPresenter ($ throw = TRUE )
148148 {
149149 return $ this ;
150150 }
@@ -667,18 +667,18 @@ public function forward($destination, $args = [])
667667 * @return void
668668 * @throws Nette\Application\AbortException
669669 */
670- public function redirectUrl ($ url , $ code = NULL )
670+ public function redirectUrl ($ url , $ httpCode = NULL )
671671 {
672672 if ($ this ->isAjax ()) {
673673 $ this ->payload ->redirect = (string ) $ url ;
674674 $ this ->sendPayload ();
675675
676- } elseif (!$ code ) {
677- $ code = $ this ->httpRequest ->isMethod ('post ' )
676+ } elseif (!$ httpCode ) {
677+ $ httpCode = $ this ->httpRequest ->isMethod ('post ' )
678678 ? Http \IResponse::S303_POST_GET
679679 : Http \IResponse::S302_FOUND ;
680680 }
681- $ this ->sendResponse (new Responses \RedirectResponse ($ url , $ code ));
681+ $ this ->sendResponse (new Responses \RedirectResponse ($ url , $ httpCode ));
682682 }
683683
684684
@@ -689,9 +689,9 @@ public function redirectUrl($url, $code = NULL)
689689 * @return void
690690 * @throws Nette\Application\BadRequestException
691691 */
692- public function error ($ message = NULL , $ code = Http \IResponse::S404_NOT_FOUND )
692+ public function error ($ message = NULL , $ httpCode = Http \IResponse::S404_NOT_FOUND )
693693 {
694- throw new Application \BadRequestException ($ message , $ code );
694+ throw new Application \BadRequestException ($ message , $ httpCode );
695695 }
696696
697697
0 commit comments