r84712 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84711‎ | r84712 | r84713 >
Date:21:32, 24 March 2011
Author:laner
Status:ok
Tags:
Comment:
Follow up to r84638. Moving the $wgUser global, and fixing formatting.
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -3047,7 +3047,7 @@
30483048 * Perform a deletion and output success or failure messages
30493049 */
30503050 public function doDelete( $reason, $suppress = false ) {
3051 - global $wgOut, $wgUser;
 3051+ global $wgOut;
30523052
30533053 $id = $this->mTitle->getArticleID( Title::GAID_FOR_UPDATE );
30543054
@@ -3099,8 +3099,9 @@
31003100 * @param $commit boolean defaults to true, triggers transaction end
31013101 * @return boolean true if successful
31023102 */
3103 - public function doDeleteArticle( $reason, $suppress = false, $id = 0, $commit = true, &$error='' ) {
 3103+ public function doDeleteArticle( $reason, $suppress = false, $id = 0, $commit = true, &$error = '' ) {
31043104 global $wgDeferredUpdateList, $wgUseTrackbacks;
 3105+ global $wgUser;
31053106
31063107 wfDebug( __METHOD__ . "\n" );
31073108

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r84638Moving deletion hooks into doArticleDelete so that other code can sanely dele...laner21:54, 23 March 2011

Status & tagging log