function __construct( $article, $mode ) {
$this->mArticle =& $article;
- $this->mTitle =& $article->mTitle;
+ $this->mTitle = $article->getTitle();
$this->mCharset = 'UTF-8';
$this->mMode = $mode;
}
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.
$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;
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() ) );
}
}