r50628 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50627‎ | r50628 | r50629 >
Date:13:44, 15 May 2009
Author:ashley
Status:deferred
Tags:
Comment:
SocialProfile: remove unused globals from EditCount.php
Modified paths:
  • /trunk/extensions/SocialProfile/UserStats/EditCount.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SocialProfile/UserStats/EditCount.php
@@ -23,7 +23,7 @@
2424 $wgHooks['ArticleDelete'][] = 'removeDeletedEdits';
2525
2626 function removeDeletedEdits( &$article, &$user, &$reason ){
27 - global $wgUser, $wgTitle, $wgNamespacesForEditPoints;
 27+ global $wgTitle, $wgNamespacesForEditPoints;
2828
2929 // only keep tally for allowable namespaces
3030 if( !is_array( $wgNamespacesForEditPoints ) || in_array( $wgTitle->getNamespace(), $wgNamespacesForEditPoints ) ){
@@ -46,7 +46,7 @@
4747 $wgHooks['ArticleUndelete'][] = 'restoreDeletedEdits';
4848
4949 function restoreDeletedEdits( &$title, $new ){
50 - global $wgUser, $wgNamespacesForEditPoints;
 50+ global $wgNamespacesForEditPoints;
5151
5252 // only keep tally for allowable namespaces
5353 if( !is_array( $wgNamespacesForEditPoints ) || in_array( $title->getNamespace(), $wgNamespacesForEditPoints ) ){

Status & tagging log