Removed SkinTemplateSetupPageCss hook and SkinTemplate::setupPageCss(), no extension...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 21 Jul 2011 11:43:05 +0000 (11:43 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 21 Jul 2011 11:43:05 +0000 (11:43 +0000)
RELEASE-NOTES-1.19
docs/hooks.txt
includes/SkinTemplate.php

index 78d8fab..3331752 100644 (file)
@@ -11,6 +11,7 @@ MediaWiki 1.19 is an alpha-quality branch and is not recommended for use in
 production.
 
 === Configuration changes in 1.19 ===
+* Removed SkinTemplateSetupPageCss hook; use BeforePageDisplay instead.
 
 === New features in 1.19 ===
 * (bug 19838) Possibility to get all interwiki prefixes if the interwiki
index 6ad299a..d5521c0 100644 (file)
@@ -1563,9 +1563,6 @@ starts page output
 $sktemplate: SkinTemplate object
 $res: set to true to prevent active tabs
 
-'SkinTemplateSetupPageCss': use this to provide per-page CSS
-$out: Css to return
-
 'SkinTemplateTabAction': Override SkinTemplate::tabAction().
 You can either create your own array, or alter the parameters for
 the normal one.
index 4b7def1..702e6ae 100644 (file)
@@ -183,14 +183,10 @@ class SkinTemplate extends Skin {
                wfProfileOut( __METHOD__ . '-stuff' );
 
                wfProfileIn( __METHOD__ . '-stuff-head' );
-               if ( $this->useHeadElement ) {
-                       $pagecss = $this->setupPageCss();
-                       if( $pagecss )
-                               $out->addInlineStyle( $pagecss );
-               } else {
+               if ( !$this->useHeadElement ) {
                        $this->setupUserCss( $out );
 
-                       $tpl->set( 'pagecss', $this->setupPageCss() );
+                       $tpl->set( 'pagecss', false );
                        $tpl->set( 'usercss', false );
 
                        $this->userjs = $this->userjsprev = false;
@@ -1307,20 +1303,6 @@ class SkinTemplate extends Skin {
                wfProfileOut( __METHOD__ );
        }
 
-       /**
-        * Code for extensions to hook into to provide per-page CSS, see
-        * extensions/PageCSS/PageCSS.php for an implementation of this.
-        *
-        * @private
-        */
-       function setupPageCss() {
-               wfProfileIn( __METHOD__ );
-               $out = false;
-               wfRunHooks( 'SkinTemplateSetupPageCss', array( &$out ) );
-               wfProfileOut( __METHOD__ );
-               return $out;
-       }
-
        public function commonPrintStylesheet() {
                return false;
        }