$wgUser -> $user. It's confusing to say the former unless you're using the global.

This commit is contained in:
Chad Horohoe 2009-05-07 20:18:15 +00:00
parent 2d7a5477d4
commit 1c23bebc10

View file

@ -38,7 +38,7 @@ $wgAutoloadClasses['SpecialGadgets'] = $dir . 'SpecialGadgets.php';
$wgSpecialPages['Gadgets'] = 'SpecialGadgets';
$wgSpecialPageGroups['Gadgets'] = 'wiki';
function wfGadgetsArticleSaveComplete( &$article, &$wgUser, $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' ) {