Index: trunk/phase3/includes/Article.php |
— | — | @@ -3047,7 +3047,7 @@ |
3048 | 3048 | * Perform a deletion and output success or failure messages |
3049 | 3049 | */ |
3050 | 3050 | public function doDelete( $reason, $suppress = false ) { |
3051 | | - global $wgOut, $wgUser; |
| 3051 | + global $wgOut; |
3052 | 3052 | |
3053 | 3053 | $id = $this->mTitle->getArticleID( Title::GAID_FOR_UPDATE ); |
3054 | 3054 | |
— | — | @@ -3099,8 +3099,9 @@ |
3100 | 3100 | * @param $commit boolean defaults to true, triggers transaction end |
3101 | 3101 | * @return boolean true if successful |
3102 | 3102 | */ |
3103 | | - public function doDeleteArticle( $reason, $suppress = false, $id = 0, $commit = true, &$error='' ) { |
| 3103 | + public function doDeleteArticle( $reason, $suppress = false, $id = 0, $commit = true, &$error = '' ) { |
3104 | 3104 | global $wgDeferredUpdateList, $wgUseTrackbacks; |
| 3105 | + global $wgUser; |
3105 | 3106 | |
3106 | 3107 | wfDebug( __METHOD__ . "\n" ); |
3107 | 3108 | |