From: Alex Z Date: Wed, 5 Aug 2009 04:20:13 +0000 (+0000) Subject: OutputPage::formatPermissionsErrorMessage() expects an array of arrays, passing an... X-Git-Tag: 1.31.0-rc.0~40487 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=5047f81196a7fad90342d611ba14deded4c7ee94;p=lhc%2Fweb%2Fwiklou.git OutputPage::formatPermissionsErrorMessage() expects an array of arrays, passing an array of strings causes a warning in PHP 5.3 --- diff --git a/includes/specials/SpecialUserrights.php b/includes/specials/SpecialUserrights.php index f0aafd9c11..8b77669b08 100644 --- a/includes/specials/SpecialUserrights.php +++ b/includes/specials/SpecialUserrights.php @@ -82,10 +82,10 @@ class UserrightsPage extends SpecialPage { if( !$this->userCanChangeRights( $wgUser, true ) ) { // fixme... there may be intermediate groups we can mention. global $wgOut; - $wgOut->showPermissionsErrorPage( array( + $wgOut->showPermissionsErrorPage( array( array( $wgUser->isAnon() ? 'userrights-nologin' - : 'userrights-notallowed' ) ); + : 'userrights-notallowed' ) ) ); return; }