dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6aff9e2
)
Add action-* class to body. Bug 4438. Based on patch by Subfader
author
Leo Koppelkamm
<diebuche@users.mediawiki.org>
Mon, 11 Jul 2011 10:57:01 +0000
(10:57 +0000)
committer
Leo Koppelkamm
<diebuche@users.mediawiki.org>
Mon, 11 Jul 2011 10:57:01 +0000
(10:57 +0000)
includes/Skin.php
patch
|
blob
|
history
diff --git
a/includes/Skin.php
b/includes/Skin.php
index
2f2cc5c
..
639d8d4
100644
(file)
--- a/
includes/Skin.php
+++ b/
includes/Skin.php
@@
-473,6
+473,7
@@
abstract class Skin {
* @return String
*/
function getPageClasses( $title ) {
+ global $wgRequest;
$numeric = 'ns-' . $title->getNamespace();
if ( $title->getNamespace() == NS_SPECIAL ) {
@@
-491,8
+492,13
@@
abstract class Skin {
}
$name = Sanitizer::escapeClass( 'page-' . $title->getPrefixedText() );
-
- return "$numeric $type $name";
+
+ if ( $wgRequest->getVal('action') ) {
+ $action = 'action-' . $wgRequest->getVal('action');
+ } else {
+ $action = 'action-view';
+ }
+ return "$numeric $type $name $action";
}
/**