From 5047f81196a7fad90342d611ba14deded4c7ee94 Mon Sep 17 00:00:00 2001 From: Alex Z Date: Wed, 5 Aug 2009 04:20:13 +0000 Subject: [PATCH] OutputPage::formatPermissionsErrorMessage() expects an array of arrays, passing an array of strings causes a warning in PHP 5.3 --- includes/specials/SpecialUserrights.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.20.1