Index: trunk/extensions/Translate/utils/MessageIndexRebuilder.php |
— | — | @@ -13,8 +13,6 @@ |
14 | 14 | */ |
15 | 15 | |
16 | 16 | class MessageIndexRebuilder { |
17 | | - protected $reportProgress; |
18 | | - |
19 | 17 | public static function execute( $reportProgress = true ) { |
20 | 18 | $groups = MessageGroups::singleton()->getGroups(); |
21 | 19 | |
— | — | @@ -23,7 +21,6 @@ |
24 | 22 | |
25 | 23 | if( $reportProgress ) { |
26 | 24 | STDOUT( "Working with ", 'main' ); |
27 | | - $this->reportProgress = true; |
28 | 25 | } |
29 | 26 | |
30 | 27 | foreach ( $groups as $g ) { |
— | — | @@ -34,11 +31,11 @@ |
35 | 32 | continue; |
36 | 33 | } |
37 | 34 | |
38 | | - self::checkAndAdd( $hugearray, $g ); |
| 35 | + self::checkAndAdd( $hugearray, $g, false, $reportProgress ); |
39 | 36 | } |
40 | 37 | |
41 | 38 | foreach ( $postponed as $g ) { |
42 | | - self::checkAndAdd( $hugearray, $g, true ); |
| 39 | + self::checkAndAdd( $hugearray, $g, true, $reportProgress ); |
43 | 40 | } |
44 | 41 | |
45 | 42 | global $wgCacheDirectory; |
— | — | @@ -48,7 +45,7 @@ |
49 | 46 | $writer->close(); |
50 | 47 | } |
51 | 48 | |
52 | | - protected static function checkAndAdd( &$hugearray, $g, $ignore = false ) { |
| 49 | + protected static function checkAndAdd( &$hugearray, $g, $ignore = false, $reportProgress = true ) { |
53 | 50 | if ( $g instanceof MessageGroupBase ) { |
54 | 51 | $cache = new MessageGroupCache( $g ); |
55 | 52 | if ( $cache->exists() ) { |
— | — | @@ -64,7 +61,7 @@ |
65 | 62 | |
66 | 63 | $id = $g->getId(); |
67 | 64 | |
68 | | - if( $this->reportProgress ) { |
| 65 | + if( $reportProgress ) { |
69 | 66 | STDOUT( "$id ", 'main' ); |
70 | 67 | } |
71 | 68 | |