From: Antoine Musso Date: Tue, 11 Jul 2006 17:46:30 +0000 (+0000) Subject: Fix ugly hack. Assume PHP5 does a nice job with references. X-Git-Tag: 1.31.0-rc.0~56292 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=65290ec3b6e48011a1476b70277add7ebe32228f;p=lhc%2Fweb%2Fwiklou.git Fix ugly hack. Assume PHP5 does a nice job with references. --- 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';