From dfa060e2caa667c1bc4e5741b28466c12a4e00b6 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 29 Nov 2008 22:17:53 +0000 Subject: [PATCH] (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 --- includes/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ) ) { -- 2.20.1