OutputPage::addWikiTextTitleTidy() requires variable as second para
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Mon, 29 Oct 2012 16:26:13 +0000 (17:26 +0100)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Mon, 29 Oct 2012 16:26:13 +0000 (17:26 +0100)
Was trowing PHP Strict Standards: Only variables should be passed by
reference.

Change-Id: I97ede1c61636c9758408b66b84694c2a5825a259

includes/EditPage.php

index 880095d..305cf4a 100644 (file)
@@ -1965,7 +1965,7 @@ class EditPage {
                        if ( $title instanceof Title && $title->exists() && $title->userCan( 'read' ) ) {
                                // Added using template syntax, to take <noinclude>'s into account.
                                $this->getArticle()->getContext()->getOutput()
-                                       ->addWikiTextTitleTidy( '{{:' . $title->getFullText() . '}}', $this->getTitle() );
+                                       ->addWikiTextTitleTidy( '{{:' . $title->getFullText() . '}}', $this->mTitle );
 
                                return true;
                        }