* Strict Standards: Only variables may be passed by reference.
authorRobert Leverington <roberthl@users.mediawiki.org>
Thu, 9 Apr 2009 18:51:45 +0000 (18:51 +0000)
committerRobert Leverington <roberthl@users.mediawiki.org>
Thu, 9 Apr 2009 18:51:45 +0000 (18:51 +0000)
  Reference title object to variable before passing as a parameter.

includes/OutputPage.php

index 0c1f294..e11f9b6 100644 (file)
@@ -655,7 +655,8 @@ class OutputPage {
         * Add wikitext with tidy enabled
         */
        public function addWikiTextTidy(  $text, $linestart = true ) {
-               $this->addWikiTextTitleTidy($text, $this->getTitle(), $linestart);
+               $title = &$this->getTitle();
+               $this->addWikiTextTitleTidy($text, $title, $linestart);
        }