Index: branches/REL1_18/phase3/includes/Skin.php |
— | — | @@ -449,6 +449,7 @@ |
450 | 450 | * @return String |
451 | 451 | */ |
452 | 452 | function getPageClasses( $title ) { |
| 453 | + global $wgRequest; |
453 | 454 | $numeric = 'ns-' . $title->getNamespace(); |
454 | 455 | |
455 | 456 | if ( $title->getNamespace() == NS_SPECIAL ) { |
— | — | @@ -467,8 +468,13 @@ |
468 | 469 | } |
469 | 470 | |
470 | 471 | $name = Sanitizer::escapeClass( 'page-' . $title->getPrefixedText() ); |
471 | | - |
472 | | - return "$numeric $type $name"; |
| 472 | + |
| 473 | + if ( $wgRequest->getVal('action') ) { |
| 474 | + $action = 'action-' . $wgRequest->getVal('action'); |
| 475 | + } else { |
| 476 | + $action = 'action-view'; |
| 477 | + } |
| 478 | + return "$numeric $type $name $action"; |
473 | 479 | } |
474 | 480 | |
475 | 481 | /** |