From: Alexandre Emsenhuber Date: Sat, 29 Nov 2008 22:17:53 +0000 (+0000) Subject: (bug 16498) Fixed fatal error while editing old revsion of a page: X-Git-Tag: 1.31.0-rc.0~44163 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22sites_tous%22%29%20.%20%22?a=commitdiff_plain;h=dfa060e2caa667c1bc4e5741b28466c12a4e00b6;p=lhc%2Fweb%2Fwiklou.git (bug 16498) Fixed fatal error while editing old revsion of a page: Fatal error: Call to protected method Article::setOldSubtitle() from context 'EditPage' in includes/EditPage.php on line 1182 --- diff --git a/includes/Article.php b/includes/Article.php index 7c80af53ac..f6412e7348 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -2852,7 +2852,7 @@ class Article { * * @param string $oldid Revision ID of this article revision */ - protected function setOldSubtitle( $oldid=0 ) { + public function setOldSubtitle( $oldid=0 ) { global $wgLang, $wgOut, $wgUser; if( !wfRunHooks( 'DisplayOldSubtitle', array(&$this, &$oldid) ) ) {