PHP compatibility: 5.3.1 is picky about pass-by-reference. Restrict use of &$foo to actual output parameters. This should probably be done for the entire code base.

This commit is contained in:
Daniel Kinzler 2010-06-02 09:10:09 +00:00
parent 4e6de6d15f
commit 4c1ade6fdd

View file

@ -36,7 +36,7 @@ $wgAutoloadClasses['SpecialGadgets'] = $dir . 'SpecialGadgets.php';
$wgSpecialPages['Gadgets'] = 'SpecialGadgets';
$wgSpecialPageGroups['Gadgets'] = 'wiki';
function wfGadgetsArticleSaveComplete( &$article, &$user, $text ) {
function wfGadgetsArticleSaveComplete( $article, $user, $text ) {
//update cache if MediaWiki:Gadgets-definition was edited
$title = $article->mTitle;
if( $title->getNamespace() == NS_MEDIAWIKI && $title->getText() == 'Gadgets-definition' ) {
@ -157,7 +157,7 @@ function wfGadgetsGetPreferences( $user, &$preferences ) {
return true;
}
function wfGadgetsBeforePageDisplay( &$out ) {
function wfGadgetsBeforePageDisplay( $out ) {
global $wgUser;
if ( !$wgUser->isLoggedIn() ) return true;
@ -188,7 +188,7 @@ function wfGadgetsBeforePageDisplay( &$out ) {
return true;
}
function wfApplyGadgetCode( $code, &$out, &$done ) {
function wfApplyGadgetCode( $code, $out, &$done ) {
global $wgJsMimeType;
//FIXME: stuff added via $out->addScript appears below usercss and userjs in the head tag.