mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-15 03:23:51 +00:00
$wgUser -> $user. It's confusing to say the former unless you're using the global.
This commit is contained in:
parent
2d7a5477d4
commit
1c23bebc10
|
@ -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' ) {
|
||||
|
|
Loading…
Reference in a new issue