Fix compat with PHP 5.3: third parameter is passed by value and not by ref (was throwing E_WARNING)

This commit is contained in:
Alexandre Emsenhuber 2009-03-10 17:06:04 +00:00
parent 021c6c122e
commit dfa01adeb9

View file

@ -41,7 +41,7 @@ $wgAutoloadClasses['SpecialGadgets'] = $dir . 'SpecialGadgets.php';
$wgSpecialPages['Gadgets'] = 'SpecialGadgets';
$wgSpecialPageGroups['Gadgets'] = 'wiki';
function wfGadgetsArticleSaveComplete( &$article, &$wgUser, &$text ) {
function wfGadgetsArticleSaveComplete( &$article, &$wgUser, $text ) {
//update cache if MediaWiki:Gadgets-definition was edited
$title = $article->mTitle;
if( $title->getNamespace() == NS_MEDIAWIKI && $title->getText() == 'Gadgets-definition' ) {