http://www.mediawiki.org/wiki/Special:Code/MediaWiki/84712
Revision: 84712
Author: laner
Date: 2011-03-24 21:32:08 +0000 (Thu, 24 Mar 2011)
Log Message:
-----------
Follow up to r84638. Moving the $wgUser global, and fixing formatting.
Modified Paths:
--------------
trunk/phase3/includes/Article.php
Modified: trunk/phase3/includes/Article.php
===================================================================
--- trunk/phase3/includes/Article.php 2011-03-24 21:29:21 UTC (rev 84711)
+++ trunk/phase3/includes/Article.php 2011-03-24 21:32:08 UTC (rev 84712)
@@ -3047,7 +3047,7 @@
* 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 @@
* @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" );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs