Index: trunk/phase3/includes/Skin.php |
— | — | @@ -660,6 +660,7 @@ |
661 | 661 | } |
662 | 662 | |
663 | 663 | function getPageClasses( $title ) { |
| 664 | + global $wgArticle; |
664 | 665 | $numeric = 'ns-'.$title->getNamespace(); |
665 | 666 | if( $title->getNamespace() == NS_SPECIAL ) { |
666 | 667 | $type = "ns-special"; |
— | — | @@ -669,7 +670,11 @@ |
670 | 671 | $type = "ns-subject"; |
671 | 672 | } |
672 | 673 | $name = Sanitizer::escapeClass( 'page-'.$title->getPrefixedText() ); |
673 | | - return "$numeric $type $name"; |
| 674 | + if( $wgArticle && $wgArticle->isDisambig() ) |
| 675 | + $disambig = ' disambiguationpage'; |
| 676 | + else |
| 677 | + $disambig = ''; |
| 678 | + return "{$numeric} {$type} {$name}{$disambig}"; |
674 | 679 | } |
675 | 680 | |
676 | 681 | /** |