From: Ævar Arnfjörð Bjarmason Date: Thu, 10 Nov 2005 05:40:25 +0000 (+0000) Subject: * Add a creeping featureism that includes MediaWiki:$specialpage-summary at the top... X-Git-Tag: 1.6.0~1201 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=43f3501f06f55e4ad0b0e434aff83d91b99075b8;p=lhc%2Fweb%2Fwiklou.git * Add a creeping featureism that includes MediaWiki:$specialpage-summary at the top of the page if it exists. --- diff --git a/includes/SpecialPage.php b/includes/SpecialPage.php index cb3cbfb9fb..2e196b4926 100644 --- a/includes/SpecialPage.php +++ b/includes/SpecialPage.php @@ -411,12 +411,23 @@ class SpecialPage if(!function_exists($func) and $this->mFile) { require_once( $this->mFile ); } + $this->outputHeader(); $func( $par, $this ); } else { $this->displayRestrictionError(); } } + function outputHeader() { + global $wgOut, $wgContLang; + + $msg = $wgContLang->lc( $this->name() ) . '-summary'; + $out = wfMsg( $msg ); + if ( ! wfEmptyMsg( $msg, $out ) and $out !== '' and ! $this->including() ) + $wgOut->addWikiText( $out ); + + } + # Returns the name that goes in the

in the special page itself, and also the name that # will be listed in Special:Specialpages #