From 55c6aed1ab148773344e1ca977d8510d0b6838bc Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 28 Jun 2011 14:10:55 +0000 Subject: [PATCH] Removed raw Article->field accessing --- includes/ExternalEdit.php | 2 +- includes/ProtectionForm.php | 2 +- includes/RawPage.php | 2 +- includes/api/ApiDelete.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/ExternalEdit.php b/includes/ExternalEdit.php index 094ae8fdfc..58e57e4bbd 100644 --- a/includes/ExternalEdit.php +++ b/includes/ExternalEdit.php @@ -22,7 +22,7 @@ class ExternalEdit { function __construct( $article, $mode ) { $this->mArticle =& $article; - $this->mTitle =& $article->mTitle; + $this->mTitle = $article->getTitle(); $this->mCharset = 'UTF-8'; $this->mMode = $mode; } diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 10b7fd9c09..5f8ab3fcb4 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -61,7 +61,7 @@ class ProtectionForm { 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. diff --git a/includes/RawPage.php b/includes/RawPage.php index f37ef99577..4d5af46ca3 100644 --- a/includes/RawPage.php +++ b/includes/RawPage.php @@ -28,7 +28,7 @@ class RawPage { $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; diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php index 06e0c64f21..979e8e1263 100644 --- a/includes/api/ApiDelete.php +++ b/includes/api/ApiDelete.php @@ -150,7 +150,7 @@ class ApiDelete extends ApiBase { 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() ) ); } } -- 2.20.1