From: daniel Date: Mon, 16 Apr 2012 06:49:38 +0000 (+0200) Subject: make Article::getContentObject() protected. Not a good way to get revision content\! X-Git-Tag: 1.31.0-rc.0~22097^2^2~257 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=418ca830a805897e4a54357f6e69439836042a24;p=lhc%2Fweb%2Fwiklou.git make Article::getContentObject() protected. Not a good way to get revision content\! Change-Id: I20dbace60e8d5b95e858e00595809171dba4c555 --- diff --git a/includes/Article.php b/includes/Article.php index 73c87969b4..e2b920ea49 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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__ );