make Article::getContentObject() protected. Not a good way to get revision content\!
authordaniel <daniel.kinzler@wikimedia.de>
Mon, 16 Apr 2012 06:49:38 +0000 (08:49 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Mon, 16 Apr 2012 06:49:38 +0000 (08:49 +0200)
Change-Id: I20dbace60e8d5b95e858e00595809171dba4c555

includes/Article.php

index 73c8796..e2b920e 100644 (file)
@@ -200,7 +200,10 @@ class Article extends Page {
        }
 
        /**
-        * Note that getContent/loadContent do not follow redirects anymore.
+        * Returns a Content object representing the pages effective display content,
+     * not necessarily the revision's content!
+     *
+     * Note that getContent/loadContent do not follow redirects anymore.
         * If you need to fetch redirectable content easily, try
         * the shortcut in WikiPage::getRedirectTarget()
         *
@@ -209,7 +212,7 @@ class Article extends Page {
         *
         * @return Return the content of this revision
         */
-   public function getContentObject() {
+   protected function getContentObject() {
                global $wgUser;
 
                wfProfileIn( __METHOD__ );