Fix ugly hack. Assume PHP5 does a nice job with references.
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 11 Jul 2006 17:46:30 +0000 (17:46 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 11 Jul 2006 17:46:30 +0000 (17:46 +0000)
includes/OutputPage.php
includes/Parser.php

index 65dba8c..58b11da 100644 (file)
@@ -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;
index 45c7569..194e31c 100644 (file)
@@ -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';