Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1563,9 +1563,6 @@ |
1564 | 1564 | $sktemplate: SkinTemplate object |
1565 | 1565 | $res: set to true to prevent active tabs |
1566 | 1566 | |
1567 | | -'SkinTemplateSetupPageCss': use this to provide per-page CSS |
1568 | | -$out: Css to return |
1569 | | - |
1570 | 1567 | 'SkinTemplateTabAction': Override SkinTemplate::tabAction(). |
1571 | 1568 | You can either create your own array, or alter the parameters for |
1572 | 1569 | the normal one. |
Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -11,6 +11,7 @@ |
12 | 12 | production. |
13 | 13 | |
14 | 14 | === Configuration changes in 1.19 === |
| 15 | +* Removed SkinTemplateSetupPageCss hook; use BeforePageDisplay instead. |
15 | 16 | |
16 | 17 | === New features in 1.19 === |
17 | 18 | * (bug 19838) Possibility to get all interwiki prefixes if the interwiki |
Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -183,14 +183,10 @@ |
184 | 184 | wfProfileOut( __METHOD__ . '-stuff' ); |
185 | 185 | |
186 | 186 | wfProfileIn( __METHOD__ . '-stuff-head' ); |
187 | | - if ( $this->useHeadElement ) { |
188 | | - $pagecss = $this->setupPageCss(); |
189 | | - if( $pagecss ) |
190 | | - $out->addInlineStyle( $pagecss ); |
191 | | - } else { |
| 187 | + if ( !$this->useHeadElement ) { |
192 | 188 | $this->setupUserCss( $out ); |
193 | 189 | |
194 | | - $tpl->set( 'pagecss', $this->setupPageCss() ); |
| 190 | + $tpl->set( 'pagecss', false ); |
195 | 191 | $tpl->set( 'usercss', false ); |
196 | 192 | |
197 | 193 | $this->userjs = $this->userjsprev = false; |
— | — | @@ -1307,20 +1303,6 @@ |
1308 | 1304 | wfProfileOut( __METHOD__ ); |
1309 | 1305 | } |
1310 | 1306 | |
1311 | | - /** |
1312 | | - * Code for extensions to hook into to provide per-page CSS, see |
1313 | | - * extensions/PageCSS/PageCSS.php for an implementation of this. |
1314 | | - * |
1315 | | - * @private |
1316 | | - */ |
1317 | | - function setupPageCss() { |
1318 | | - wfProfileIn( __METHOD__ ); |
1319 | | - $out = false; |
1320 | | - wfRunHooks( 'SkinTemplateSetupPageCss', array( &$out ) ); |
1321 | | - wfProfileOut( __METHOD__ ); |
1322 | | - return $out; |
1323 | | - } |
1324 | | - |
1325 | 1307 | public function commonPrintStylesheet() { |
1326 | 1308 | return false; |
1327 | 1309 | } |