From ab8b197963eef1f1ad1efce38423242555a9e6ea Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 11 Jul 2006 14:03:17 +0000 Subject: [PATCH] Some new strictness with PHP5 --- includes/OutputPage.php | 3 ++- includes/Parser.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 8de5372a5d..65dba8cbeb 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -46,7 +46,8 @@ class OutputPage { $this->mCategoryLinks = array(); $this->mDoNothing = false; $this->mContainsOldMagic = $this->mContainsNewMagic = 0; - $this->mParserOptions = ParserOptions::newFromUser( $temp = NULL ); + $nullvalue = NULL; + $this->mParserOptions = ParserOptions::newFromUser( $nullvalue ); $this->mSquidMaxage = 0; $this->mScripts = ''; $this->mETag = false; diff --git a/includes/Parser.php b/includes/Parser.php index 8a6314dfe7..963c741b0c 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -4072,7 +4072,8 @@ class Parser if ( count( $matches ) == 0 ) { continue; } - $nt =& Title::newFromText( $matches[1] ); + $tp = Title::newFromText( $matches[1] ); + $nt =& $tp; if( is_null( $nt ) ) { # Bogus title. Ignore these so we don't bomb out later. continue; -- 2.20.1