Index: trunk/extensions/Translate/tag/SpecialPageTranslation.php |
— | — | @@ -623,7 +623,7 @@ |
624 | 624 | } |
625 | 625 | |
626 | 626 | if ( !$hasen ) { |
627 | | - $job = RenderJob::newJob( $en )->insert(); |
| 627 | + RenderJob::newJob( $en )->insert(); |
628 | 628 | } |
629 | 629 | } |
630 | 630 | |
Index: trunk/extensions/Translate/utils/MessageIndex.php |
— | — | @@ -67,7 +67,7 @@ |
68 | 68 | $this->store( $new ); |
69 | 69 | $this->clearMessageGroupStats( $old, $new ); |
70 | 70 | } |
71 | | - |
| 71 | + |
72 | 72 | /** |
73 | 73 | * Purge message group stats when set of keys have changed. |
74 | 74 | */ |
— | — | @@ -194,7 +194,7 @@ |
195 | 195 | |
196 | 196 | protected function store( array $array ) { |
197 | 197 | $key = wfMemckey( $this->key ); |
198 | | - $data = $this->cache->set( $key, $array ); |
| 198 | + $this->cache->set( $key, $array ); |
199 | 199 | } |
200 | 200 | |
201 | 201 | } |
Index: trunk/extensions/Translate/utils/MessageGroupStats.php |
— | — | @@ -40,7 +40,6 @@ |
41 | 41 | * @return Array |
42 | 42 | */ |
43 | 43 | public static function forItem( $id, $code ) { |
44 | | - $group = MessageGroups::getGroup( $id ); |
45 | 44 | $res = self::selectRowsIdLang( $id, $code ); |
46 | 45 | $stats = self::extractResults( $res ); |
47 | 46 | |
— | — | @@ -163,7 +162,7 @@ |
164 | 163 | (int)$row->tgs_fuzzy |
165 | 164 | ); |
166 | 165 | } |
167 | | - |
| 166 | + |
168 | 167 | protected static function forLanguageInternal( $code, $stats = array() ) { |
169 | 168 | $res = self::selectRowsIdLang( null, $code ); |
170 | 169 | $stats = self::extractResults( $res, $stats ); |
— | — | @@ -186,8 +185,8 @@ |
187 | 186 | return $flattened; |
188 | 187 | } |
189 | 188 | |
190 | | - |
191 | 189 | |
| 190 | + |
192 | 191 | protected static function forGroupInternal( $group, $stats = array() ) { |
193 | 192 | $id = $group->getId(); |
194 | 193 | $res = self::selectRowsIdLang( $id, null ); |
— | — | @@ -199,7 +198,7 @@ |
200 | 199 | if ( isset( $stats[$id][$code] ) ) continue; |
201 | 200 | $stats[$id][$code] = self::forItemInternal( $stats, $group, $code ); |
202 | 201 | } |
203 | | - |
| 202 | + |
204 | 203 | return $stats; |
205 | 204 | } |
206 | 205 | |
— | — | @@ -217,7 +216,7 @@ |
218 | 217 | $res = $dbr->select( self::TABLE, '*', $conds, __METHOD__ ); |
219 | 218 | return $res; |
220 | 219 | } |
221 | | - |
| 220 | + |
222 | 221 | protected static function forItemInternal( &$stats, $group, $code ) { |
223 | 222 | $id = $group->getId(); |
224 | 223 | |
— | — | @@ -229,7 +228,7 @@ |
230 | 229 | $ids = array_unique( self::expandAggregates( $group ) ); |
231 | 230 | $res = self::selectRowsIdLang( $ids, $code ); |
232 | 231 | $stats = self::extractResults( $res, $stats ); |
233 | | - |
| 232 | + |
234 | 233 | $aggregates = array( 0, 0, 0 ); |
235 | 234 | foreach ( $group->getGroups() as $sid => $sgroup ) { |
236 | 235 | if ( !isset( $stats[$sid][$code] ) ) { |
Index: trunk/extensions/Translate/specials/SpecialManageGroups.php |
— | — | @@ -426,11 +426,6 @@ |
427 | 427 | $wgLang->formatNum( count( $modified ) ) |
428 | 428 | ); |
429 | 429 | |
430 | | - $formParams = array( |
431 | | - 'method' => 'post', |
432 | | - 'action' => $this->getTitle()->getFullURL( array( 'group' => $group->getId() ) ), |
433 | | - ); |
434 | | - |
435 | 430 | if ( $this->user->isAllowed( 'translate-manage' ) ) { |
436 | 431 | $this->out->addHTML( $this->rebuildButton( $group, $codes, 'import' ) ); |
437 | 432 | } |
Index: trunk/extensions/Translate/ffs/MediaWikiExtensions.php |
— | — | @@ -225,6 +225,4 @@ |
226 | 226 | |
227 | 227 | return array(); |
228 | 228 | } |
229 | | - |
230 | | - |
231 | 229 | } |
Index: trunk/extensions/Translate/ffs/ToolserverTextdomains.php |
— | — | @@ -29,7 +29,6 @@ |
30 | 30 | } |
31 | 31 | |
32 | 32 | protected function processGroups( $groups ) { |
33 | | - $configureData = $this->loadConfigureExtensionData(); |
34 | 33 | $fixedGroups = array(); |
35 | 34 | foreach ( $groups as $g ) { |
36 | 35 | if ( !is_array( $g ) ) { |