Follow up to r84638. Moving the $wgUser global, and fixing formatting.
authorRyan Lane <laner@users.mediawiki.org>
Thu, 24 Mar 2011 21:32:08 +0000 (21:32 +0000)
committerRyan Lane <laner@users.mediawiki.org>
Thu, 24 Mar 2011 21:32:08 +0000 (21:32 +0000)
includes/Article.php

index cc352e1..3df5066 100644 (file)
@@ -3047,7 +3047,7 @@ class Article {
         * Perform a deletion and output success or failure messages
         */
        public function doDelete( $reason, $suppress = false ) {
-               global $wgOut, $wgUser;
+               global $wgOut;
 
                $id = $this->mTitle->getArticleID( Title::GAID_FOR_UPDATE );
 
@@ -3099,8 +3099,9 @@ class Article {
         * @param $commit boolean defaults to true, triggers transaction end
         * @return boolean true if successful
         */
-       public function doDeleteArticle( $reason, $suppress = false, $id = 0, $commit = true, &$error='' ) {
+       public function doDeleteArticle( $reason, $suppress = false, $id = 0, $commit = true, &$error = '' ) {
                global $wgDeferredUpdateList, $wgUseTrackbacks;
+               global $wgUser;
 
                wfDebug( __METHOD__ . "\n" );