* (bug 18170) Fixed a PHP warning in Parser::preSaveTransform() in PHP 5.3: Parameter...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 2 Apr 2009 19:16:24 +0000 (19:16 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 2 Apr 2009 19:16:24 +0000 (19:16 +0000)
RELEASE-NOTES
includes/parser/Parser.php

index 9c1e90c..ccb608a 100644 (file)
@@ -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
index bfff371..8908c44 100644 (file)
@@ -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 );