Index: trunk/extensions/SocialProfile/UserStats/EditCount.php |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | $wgHooks['ArticleDelete'][] = 'removeDeletedEdits'; |
25 | 25 | |
26 | 26 | function removeDeletedEdits( &$article, &$user, &$reason ){ |
27 | | - global $wgUser, $wgTitle, $wgNamespacesForEditPoints; |
| 27 | + global $wgTitle, $wgNamespacesForEditPoints; |
28 | 28 | |
29 | 29 | // only keep tally for allowable namespaces |
30 | 30 | if( !is_array( $wgNamespacesForEditPoints ) || in_array( $wgTitle->getNamespace(), $wgNamespacesForEditPoints ) ){ |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | $wgHooks['ArticleUndelete'][] = 'restoreDeletedEdits'; |
48 | 48 | |
49 | 49 | function restoreDeletedEdits( &$title, $new ){ |
50 | | - global $wgUser, $wgNamespacesForEditPoints; |
| 50 | + global $wgNamespacesForEditPoints; |
51 | 51 | |
52 | 52 | // only keep tally for allowable namespaces |
53 | 53 | if( !is_array( $wgNamespacesForEditPoints ) || in_array( $title->getNamespace(), $wgNamespacesForEditPoints ) ){ |