Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1193,7 +1193,7 @@ |
1194 | 1194 | $parserOutput: the parserOutput (object) that corresponds to the page |
1195 | 1195 | $text: the text that will be displayed, in HTML (string) |
1196 | 1196 | |
1197 | | -'OutputPageBodyAttrs': called when OutputPage::headElement is creating the body |
| 1197 | +'OutputPageBodyAttributes': called when OutputPage::headElement is creating the body |
1198 | 1198 | tag to allow for extensions to add attributes to the body of the page they might |
1199 | 1199 | need. Or to allow building extensions to add body classes that aren't of high |
1200 | 1200 | enough demand to be included in core. |
Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2276,8 +2276,8 @@ |
2277 | 2277 | $bodyAttrs['class'] .= ' ' . Sanitizer::escapeClass( 'page-' . $this->getTitle()->getPrefixedText() ); |
2278 | 2278 | $bodyAttrs['class'] .= ' skin-' . Sanitizer::escapeClass( $wgUser->getSkin()->getSkinName() ); |
2279 | 2279 | |
2280 | | - $sk->bodyAttributes( $this, $bodyAttrs ); // Allow skins to add body attributes they need |
2281 | | - wfRunHooks( 'OutputPageBodyAttrs', array( $this, $sk, &$bodyAttrs ) ); |
| 2280 | + $sk->addToBodyAttributes( $this, $bodyAttrs ); // Allow skins to add body attributes they need |
| 2281 | + wfRunHooks( 'OutputPageBodyAttributes', array( $this, $sk, &$bodyAttrs ) ); |
2282 | 2282 | |
2283 | 2283 | $ret .= Html::openElement( 'body', $bodyAttrs ) . "\n"; |
2284 | 2284 | |
Index: trunk/phase3/includes/Skin.php |
— | — | @@ -568,13 +568,13 @@ |
569 | 569 | |
570 | 570 | return "$numeric $type $name"; |
571 | 571 | } |
572 | | - |
| 572 | + |
573 | 573 | /** |
574 | 574 | * This will be called by OutputPage::headElement when it is creating the |
575 | 575 | * <body> tag, skins can override it if they have a need to add in any |
576 | 576 | * body attributes or classes of their own. |
577 | 577 | */ |
578 | | - function bodyAttributes( $out, &$bodyAttrs ) { |
| 578 | + function addToBodyAttributes( $out, &$bodyAttrs ) { |
579 | 579 | // does nothing by default |
580 | 580 | } |
581 | 581 | |