Index: trunk/extensions/CodeReview/CodeReview.php |
— | — | @@ -145,6 +145,9 @@ |
146 | 146 | // What is the default SVN import chunk size? |
147 | 147 | $wgCodeReviewImportBatchSize = 400; |
148 | 148 | |
| 149 | +// Shuffle the tag cloud |
| 150 | +$wgCodeReviewShuffleTagCloud = false; |
| 151 | + |
149 | 152 | $commonModuleInfo = array( |
150 | 153 | 'localBasePath' => dirname( __FILE__ ) . '/modules', |
151 | 154 | 'remoteExtPath' => 'CodeReview/modules', |
Index: trunk/extensions/CodeReview/ui/WordCloud.php |
— | — | @@ -85,10 +85,17 @@ |
86 | 86 | * @return String |
87 | 87 | */ |
88 | 88 | public function getCloudHtml() { |
| 89 | + global $wgCodeReviewShuffleTagCloud; |
89 | 90 | if( 0 === count( $this->wordsArray ) ) { |
90 | 91 | return ''; |
91 | 92 | } |
92 | | - $this->shuffleCloud(); |
| 93 | + |
| 94 | + if ( $wgCodeReviewShuffleTagCloud ) { |
| 95 | + $this->shuffleCloud(); |
| 96 | + } else { |
| 97 | + ksort( $this->wordsArray ); |
| 98 | + } |
| 99 | + |
93 | 100 | $max = max( $this->wordsArray ); |
94 | 101 | if( is_array( $this->wordsArray ) ) { |
95 | 102 | $return = ''; |