r93824 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93823‎ | r93824 | r93825 >
Date:13:25, 3 August 2011
Author:tstarling
Status:ok
Tags:
Comment:
MFT r93823
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/CodeReview/CodeReview.php (modified) (history)
  • /branches/wmf/1.17wmf1/extensions/CodeReview/ui/WordCloud.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/CodeReview/CodeReview.php
@@ -145,6 +145,9 @@
146146 // What is the default SVN import chunk size?
147147 $wgCodeReviewImportBatchSize = 400;
148148
 149+// Shuffle the tag cloud
 150+$wgCodeReviewShuffleTagCloud = false;
 151+
149152 $commonModuleInfo = array(
150153 'localBasePath' => dirname( __FILE__ ) . '/modules',
151154 'remoteExtPath' => 'CodeReview/modules',
Index: branches/wmf/1.17wmf1/extensions/CodeReview/ui/WordCloud.php
@@ -85,10 +85,17 @@
8686 * @return String
8787 */
8888 public function getCloudHtml() {
 89+ global $wgCodeReviewShuffleTagCloud;
8990 if( 0 === count( $this->wordsArray ) ) {
9091 return '';
9192 }
92 - $this->shuffleCloud();
 93+
 94+ if ( $wgCodeReviewShuffleTagCloud ) {
 95+ $this->shuffleCloud();
 96+ } else {
 97+ ksort( $this->wordsArray );
 98+ }
 99+
93100 $max = max( $this->wordsArray );
94101 if( is_array( $this->wordsArray ) ) {
95102 $return = '';

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r93823Fix for bug 30195 (tag cloud is inexplicably shuffled), based on patch by Kalantstarling13:22, 3 August 2011

Status & tagging log