r60097 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60096‎ | r60097 | r60098 >
Date:22:59, 15 December 2009
Author:aaron
Status:ok
Tags:
Comment:
Don't show precedence in stability log items if there is only one review tier
Modified paths:
  • /trunk/extensions/FlaggedRevs/specialpages/Stabilization_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/specialpages/Stabilization_body.php
@@ -463,9 +463,15 @@
464464 # ID, accuracy, depth, style
465465 $set = array();
466466 # @FIXME: do this better
467 - $set[] = wfMsgForContent( "stabilization-sel-short" ) . wfMsgForContent( 'colon-separator' ) .
468 - wfMsgForContent("stabilization-sel-short-{$this->select}");
469 - $set[] = wfMsgForContent( "stabilization-def-short" ) . wfMsgForContent( 'colon-separator' ) .
 467+ // Precedence
 468+ if( FlaggedRevs::qualityVersions() ) {
 469+ $set[] = wfMsgForContent( 'stabilization-sel-short' ) .
 470+ wfMsgForContent( 'colon-separator' ) .
 471+ wfMsgForContent("stabilization-sel-short-{$this->select}");
 472+ }
 473+ // Default version
 474+ $set[] = wfMsgForContent( 'stabilization-def-short' ) .
 475+ wfMsgForContent( 'colon-separator' ) .
470476 wfMsgForContent("stabilization-def-short-{$this->override}");
471477 if( strlen($this->autoreview) ) {
472478 $set[] = "autoreview={$this->autoreview}";

Status & tagging log