* (bug 20494) OutputPage::getArticleBodyOnly() no longer requires an useless argument
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 3 Sep 2009 21:15:07 +0000 (21:15 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 3 Sep 2009 21:15:07 +0000 (21:15 +0000)
This function seems to not be used anywhere in core :)
Patch by Juliano F. Ravasi - http://bug-attachment.wikimedia.org/attachment.cgi?id=6528

RELEASE-NOTES
includes/OutputPage.php

index 1234eb7..8a20f61 100644 (file)
@@ -454,6 +454,8 @@ this. Was used when mwEmbed was going to be an extension.
 * (bug 20466) Hidden categories are no more displayed when printing
 * (bug 20446) When changing user rights with User@remotewiki and remotewiki is
   the local wiki, the user is now treated as the local user
+* (bug 20494) OutputPage::getArticleBodyOnly() no longer requires an useless
+  argument
 
 == API changes in 1.16 ==
 
index 4bb2f95..4c818b0 100644 (file)
@@ -306,7 +306,7 @@ class OutputPage {
 
        function setETag($tag) { $this->mETag = $tag; }
        function setArticleBodyOnly($only) { $this->mArticleBodyOnly = $only; }
-       function getArticleBodyOnly($only) { return $this->mArticleBodyOnly; }
+       function getArticleBodyOnly() { return $this->mArticleBodyOnly; }
 
        function addLink( $linkarr ) {
                # $linkarr should be an associative array of attributes. We'll escape on output.