From 0f46b8da6ae0cb00aefd572499d95bb17a963cfc Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 8 Aug 2010 14:58:29 +0000 Subject: [PATCH] Removed PHP4-ism --- includes/RawPage.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/RawPage.php b/includes/RawPage.php index a3b4fc2acb..03cb4a1521 100644 --- a/includes/RawPage.php +++ b/includes/RawPage.php @@ -23,15 +23,15 @@ class RawPage { var $mSmaxage, $mMaxage; var $mContentType, $mExpandTemplates; - function __construct( &$article, $request = false ) { + function __construct( Article $article, $request = false ) { global $wgRequest, $wgInputEncoding, $wgSquidMaxage, $wgJsMimeType, $wgGroupPermissions; $allowedCTypes = array('text/x-wiki', $wgJsMimeType, 'text/css', 'application/x-zope-edit'); - $this->mArticle =& $article; - $this->mTitle =& $article->mTitle; + $this->mArticle = $article; + $this->mTitle = $article->mTitle; if( $request === false ) { - $this->mRequest =& $wgRequest; + $this->mRequest = $wgRequest; } else { $this->mRequest = $request; } -- 2.20.1