(bug 16498) Fixed fatal error while editing old revsion of a page:
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 29 Nov 2008 22:17:53 +0000 (22:17 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 29 Nov 2008 22:17:53 +0000 (22:17 +0000)
Fatal error: Call to protected method Article::setOldSubtitle() from context 'EditPage' in includes/EditPage.php on line 1182

includes/Article.php

index 7c80af5..f6412e7 100644 (file)
@@ -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) ) ) {