From 65290ec3b6e48011a1476b70277add7ebe32228f Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 11 Jul 2006 17:46:30 +0000 Subject: [PATCH] Fix ugly hack. Assume PHP5 does a nice job with references. --- includes/OutputPage.php | 3 +-- includes/Parser.php | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 65dba8cbeb..58b11dab62 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -46,8 +46,7 @@ class OutputPage { $this->mCategoryLinks = array(); $this->mDoNothing = false; $this->mContainsOldMagic = $this->mContainsNewMagic = 0; - $nullvalue = NULL; - $this->mParserOptions = ParserOptions::newFromUser( $nullvalue ); + $this->mParserOptions = ParserOptions::newFromUser( NULL ); $this->mSquidMaxage = 0; $this->mScripts = ''; $this->mETag = false; diff --git a/includes/Parser.php b/includes/Parser.php index 45c7569a7d..194e31c4ac 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -4561,12 +4561,12 @@ class ParserOptions * Get parser options * @static */ - static function newFromUser( &$user ) { + static function newFromUser( $user ) { return new ParserOptions( $user ); } /** Get user options */ - function initialiseFromUser( &$userInput ) { + function initialiseFromUser( $userInput ) { global $wgUseTeX, $wgUseDynamicDates, $wgInterwikiMagic, $wgAllowExternalImages; global $wgAllowExternalImagesFrom, $wgAllowSpecialInclusion; $fname = 'ParserOptions::initialiseFromUser'; -- 2.20.1