Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -231,6 +231,7 @@ |
232 | 232 | * (bug 33587) Remove action "historysubmit" from history pages. |
233 | 233 | * (bug 25800) mw.config wgAction should contain the actually performed action instead |
234 | 234 | of whatever the query value contains. |
| 235 | +* (bug 4438) Add CSS hook for current WikiPage action. |
235 | 236 | |
236 | 237 | === API changes in 1.19 === |
237 | 238 | * (bug 19838) siprop=interwikimap can now use the interwiki cache. |
Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2380,7 +2380,8 @@ |
2381 | 2381 | * @return String: The doctype, opening <html>, and head element. |
2382 | 2382 | */ |
2383 | 2383 | public function headElement( Skin $sk, $includeStyle = true ) { |
2384 | | - global $wgContLang; |
| 2384 | + global $wgContLang, $mediaWiki; |
| 2385 | + |
2385 | 2386 | $userdir = $this->getLanguage()->getDir(); |
2386 | 2387 | $sitedir = $wgContLang->getDir(); |
2387 | 2388 | |
— | — | @@ -2425,6 +2426,7 @@ |
2426 | 2427 | } |
2427 | 2428 | $bodyAttrs['class'] .= ' ' . $sk->getPageClasses( $this->getTitle() ); |
2428 | 2429 | $bodyAttrs['class'] .= ' skin-' . Sanitizer::escapeClass( $sk->getSkinName() ); |
| 2430 | + $bodyAttrs['class'] .= ' action-' . Sanitizer::escapeClass( $mediaWiki->getPerformedAction() ); |
2429 | 2431 | |
2430 | 2432 | $sk->addToBodyAttributes( $this, $bodyAttrs ); // Allow skins to add body attributes they need |
2431 | 2433 | wfRunHooks( 'OutputPageBodyAttributes', array( $this, $sk, &$bodyAttrs ) ); |