From 43f3501f06f55e4ad0b0e434aff83d91b99075b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Thu, 10 Nov 2005 05:40:25 +0000 Subject: [PATCH] * Add a creeping featureism that includes MediaWiki:$specialpage-summary at the top of the page if it exists. --- includes/SpecialPage.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 # -- 2.20.1