r54427 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54426‎ | r54427 | r54428 >
Date:04:20, 5 August 2009
Author:mrzman
Status:ok
Tags:
Comment:
OutputPage::formatPermissionsErrorMessage() expects an array of arrays, passing an array of strings causes a warning in PHP 5.3
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUserrights.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUserrights.php
@@ -82,10 +82,10 @@
8383 if( !$this->userCanChangeRights( $wgUser, true ) ) {
8484 // fixme... there may be intermediate groups we can mention.
8585 global $wgOut;
86 - $wgOut->showPermissionsErrorPage( array(
 86+ $wgOut->showPermissionsErrorPage( array( array(
8787 $wgUser->isAnon()
8888 ? 'userrights-nologin'
89 - : 'userrights-notallowed' ) );
 89+ : 'userrights-notallowed' ) ) );
9090 return;
9191 }
9292

Status & tagging log