mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-15 03:23:51 +00:00
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:
parent
4e6de6d15f
commit
4c1ade6fdd
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue