X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fexception%2FUserNotLoggedIn.php;h=916be2d436a13e253ffd5acd6d967dc93242ad09;hb=d86fd790669afdf05719b821b896b5427ac73191;hp=02fca3d8d043ea58da09862ad05ac32648c78cf7;hpb=31d239f9d9e2516fc725d9b743ece0dfe72c23a2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/exception/UserNotLoggedIn.php b/includes/exception/UserNotLoggedIn.php index 02fca3d8d0..916be2d436 100644 --- a/includes/exception/UserNotLoggedIn.php +++ b/includes/exception/UserNotLoggedIn.php @@ -67,7 +67,7 @@ class UserNotLoggedIn extends ErrorPageError { public function __construct( $reasonMsg = 'exception-nologin-text', $titleMsg = 'exception-nologin', - $params = array() + $params = [] ) { parent::__construct( $titleMsg, $reasonMsg, $params ); } @@ -92,12 +92,12 @@ class UserNotLoggedIn extends ErrorPageError { // Title will be overridden by returnto unset( $query['title'] ); // Redirect to Special:Userlogin - $output->redirect( SpecialPage::getTitleFor( 'Userlogin' )->getFullURL( array( + $output->redirect( SpecialPage::getTitleFor( 'Userlogin' )->getFullURL( [ // Return to this page when the user logs in 'returnto' => $context->getTitle()->getFullText(), 'returntoquery' => wfArrayToCgi( $query ), 'warning' => $this->msg, - ) ) ); + ] ) ); $output->output(); }