* Add a creeping featureism that includes MediaWiki:$specialpage-summary at the top...
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Thu, 10 Nov 2005 05:40:25 +0000 (05:40 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Thu, 10 Nov 2005 05:40:25 +0000 (05:40 +0000)
includes/SpecialPage.php

index cb3cbfb..2e196b4 100644 (file)
@@ -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 <h1> in the special page itself, and also the name that
        # will be listed in Special:Specialpages
        #