From 82730b9de6d815db4dc10ff6fe7abd541e00d89b Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 2 Apr 2009 19:16:24 +0000 Subject: [PATCH] * (bug 18170) Fixed a PHP warning in Parser::preSaveTransform() in PHP 5.3: Parameter 2 was expected to be a reference but value given when $wgParser is unstubbed on that call --- RELEASE-NOTES | 1 + includes/parser/Parser.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9c1e90c796..ccb608a915 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -316,6 +316,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Don't add empty title="" attributes to links to anchors on the current page * (bug 18291) rebuildrecentchanges.php failed to add deletion log entries * (bug 18304) rebuildrecentchanges.php got size changes wrong +* (bug 18170) Fixed a PHP warning in Parser::preSaveTransform() in PHP 5.3 == API changes in 1.15 == * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index bfff3719e3..8908c442f1 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -3687,13 +3687,13 @@ class Parser * * @param string $text the text to transform * @param Title &$title the Title object for the current article - * @param User &$user the User object describing the current user + * @param User $user the User object describing the current user * @param ParserOptions $options parsing options * @param bool $clearState whether to clear the parser state first * @return string the altered wiki markup * @public */ - function preSaveTransform( $text, &$title, $user, $options, $clearState = true ) { + function preSaveTransform( $text, Title $title, $user, $options, $clearState = true ) { $this->mOptions = $options; $this->setTitle( $title ); $this->setOutputType( self::OT_WIKI ); -- 2.20.1