r50322 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50321‎ | r50322 | r50323 >
Date:20:18, 7 May 2009
Author:demon
Status:ok
Tags:
Comment:
$wgUser -> $user. It's confusing to say the former unless you're using the global.
Modified paths:
  • /trunk/extensions/Gadgets/Gadgets.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Gadgets/Gadgets.php
@@ -38,7 +38,7 @@
3939 $wgSpecialPages['Gadgets'] = 'SpecialGadgets';
4040 $wgSpecialPageGroups['Gadgets'] = 'wiki';
4141
42 -function wfGadgetsArticleSaveComplete( &$article, &$wgUser, $text ) {
 42+function wfGadgetsArticleSaveComplete( &$article, &$user, $text ) {
4343 //update cache if MediaWiki:Gadgets-definition was edited
4444 $title = $article->mTitle;
4545 if( $title->getNamespace() == NS_MEDIAWIKI && $title->getText() == 'Gadgets-definition' ) {

Status & tagging log