r42129 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42128‎ | r42129 | r42130 >
Date:01:09, 16 October 2008
Author:aaron
Status:old
Tags:
Comment:
Tweak switch to use constants here
Modified paths:
  • /trunk/extensions/CodeReview/CodeRevisionListView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/CodeRevisionListView.php
@@ -118,7 +118,8 @@
119119 function formatValue( $name, $value ) {
120120 global $wgUser, $wgLang;
121121 switch( $name ) {
122 - case $this->getDefaultSort():
 122+ case 'cp_rev_id':
 123+ case 'cr_id':
123124 return $this->mView->mSkin->link(
124125 SpecialPage::getTitleFor( 'Code', $this->mRepo->getName() . '/' . $value ),
125126 htmlspecialchars( $value ) );

Status & tagging log