r108627 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108626‎ | r108627 | r108628 >
Date:15:40, 11 January 2012
Author:reedy
Status:ok
Tags:
Comment:
Revert r94131 out of 1.18 from r108620
Modified paths:
  • /branches/REL1_18/phase3/includes/Skin.php (modified) (history)

Diff [purge]

Index: branches/REL1_18/phase3/includes/Skin.php
@@ -449,6 +449,7 @@
450450 * @return String
451451 */
452452 function getPageClasses( $title ) {
 453+ global $wgRequest;
453454 $numeric = 'ns-' . $title->getNamespace();
454455
455456 if ( $title->getNamespace() == NS_SPECIAL ) {
@@ -467,8 +468,13 @@
468469 }
469470
470471 $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";
473479 }
474480
475481 /**

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r94131Reverted r91871 per CR: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/......aaron18:36, 9 August 2011
r108620MFT r92703, r94131...reedy14:53, 11 January 2012

Status & tagging log