Index: trunk/extensions/Translate/specials/SpecialMessageGroupStats.php |
— | — | @@ -107,7 +107,13 @@ |
108 | 108 | function getTable() { |
109 | 109 | $table = $this->table; |
110 | 110 | |
111 | | - $this->workflowStatesColumn(); |
| 111 | + global $wgTranslateWorkflowStates; |
| 112 | + if ( $wgTranslateWorkflowStates ) { |
| 113 | + $this->states = self::getWorkflowStates( $this->target ); |
| 114 | + $this->statemap = array_flip( $wgTranslateWorkflowStates ); |
| 115 | + $table->addExtraColumn( wfMessage( 'translate-stats-workflow' ) ); |
| 116 | + } |
| 117 | + |
112 | 118 | $out = ''; |
113 | 119 | |
114 | 120 | if ( $this->purge ) { |
Index: trunk/extensions/Translate/specials/SpecialLanguageStats.php |
— | — | @@ -229,20 +229,6 @@ |
230 | 230 | } |
231 | 231 | |
232 | 232 | /** |
233 | | - * Adds a workflow states column if its needed. |
234 | | - */ |
235 | | - function workflowStatesColumn() { |
236 | | - global $wgTranslateWorkflowStates; |
237 | | - if ( $wgTranslateWorkflowStates ) { |
238 | | - $this->states = self::getWorkflowStates( $this->target ); |
239 | | - $this->statemap = array_flip( $wgTranslateWorkflowStates ); |
240 | | - $table->addExtraColumn( wfMessage( 'translate-stats-workflow' ) ); |
241 | | - } |
242 | | - return; |
243 | | - } |
244 | | - |
245 | | - |
246 | | - /** |
247 | 233 | * Returns the table itself. |
248 | 234 | * @return \string HTML |
249 | 235 | */ |