http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90957
Revision: 90957
Author: aaron
Date: 2011-06-28 14:10:55 +0000 (Tue, 28 Jun 2011)
Log Message:
-----------
Removed raw Article->field accessing
Modified Paths:
--------------
trunk/phase3/includes/ExternalEdit.php
trunk/phase3/includes/ProtectionForm.php
trunk/phase3/includes/RawPage.php
trunk/phase3/includes/api/ApiDelete.php
Modified: trunk/phase3/includes/ExternalEdit.php
===================================================================
--- trunk/phase3/includes/ExternalEdit.php 2011-06-28 13:51:41 UTC (rev
90956)
+++ trunk/phase3/includes/ExternalEdit.php 2011-06-28 14:10:55 UTC (rev
90957)
@@ -22,7 +22,7 @@
function __construct( $article, $mode ) {
$this->mArticle =& $article;
- $this->mTitle =& $article->mTitle;
+ $this->mTitle = $article->getTitle();
$this->mCharset = 'UTF-8';
$this->mMode = $mode;
}
Modified: trunk/phase3/includes/ProtectionForm.php
===================================================================
--- trunk/phase3/includes/ProtectionForm.php 2011-06-28 13:51:41 UTC (rev
90956)
+++ trunk/phase3/includes/ProtectionForm.php 2011-06-28 14:10:55 UTC (rev
90957)
@@ -61,7 +61,7 @@
global $wgUser;
// Set instance variables.
$this->mArticle = $article;
- $this->mTitle = $article->mTitle;
+ $this->mTitle = $article->getTitle();
$this->mApplicableTypes = $this->mTitle->getRestrictionTypes();
// Check if the form should be disabled.
Modified: trunk/phase3/includes/RawPage.php
===================================================================
--- trunk/phase3/includes/RawPage.php 2011-06-28 13:51:41 UTC (rev 90956)
+++ trunk/phase3/includes/RawPage.php 2011-06-28 14:10:55 UTC (rev 90957)
@@ -28,7 +28,7 @@
$allowedCTypes = array( 'text/x-wiki', $wgJsMimeType,
'text/css', 'application/x-zope-edit' );
$this->mArticle = $article;
- $this->mTitle = $article->mTitle;
+ $this->mTitle = $article->getTitle();
if( $request === false ) {
$this->mRequest = $wgRequest;
Modified: trunk/phase3/includes/api/ApiDelete.php
===================================================================
--- trunk/phase3/includes/api/ApiDelete.php 2011-06-28 13:51:41 UTC (rev
90956)
+++ trunk/phase3/includes/api/ApiDelete.php 2011-06-28 14:10:55 UTC (rev
90957)
@@ -150,7 +150,7 @@
if ( $article->doDeleteArticle( $reason, false, 0, true, $error
) ) {
return array();
} else {
- return array( array( 'cannotdelete',
$article->mTitle->getPrefixedText() ) );
+ return array( array( 'cannotdelete',
$article->getTitle()->getPrefixedText() ) );
}
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs