Index: trunk/extensions/Translate/Stats.php |
— | — | @@ -113,9 +113,6 @@ |
114 | 114 | } |
115 | 115 | |
116 | 116 | $labels = null; |
117 | | - if ( $opts['type'] === 'userlang' ) { |
118 | | - $labels = @array_keys($usercache); |
119 | | - } |
120 | 117 | $so->labels( $labels ); |
121 | 118 | |
122 | 119 | //var_dump( $data ); |
— | — | @@ -229,7 +226,7 @@ |
230 | 227 | public function indexOf( $row ) { |
231 | 228 | global $wgContLang; |
232 | 229 | |
233 | | - if ( max($this->filters) === 0 ) return 0; |
| 230 | + if ( !max($this->filters) ) return 0; |
234 | 231 | if ( strpos( $row->rc_title, '/' ) === false ) return -1; |
235 | 232 | |
236 | 233 | list( $key, $code ) = explode('/', $wgContLang->lcfirst($row->rc_title), 2); |
— | — | @@ -248,8 +245,7 @@ |
249 | 246 | $indexKey .= $code; |
250 | 247 | } |
251 | 248 | |
252 | | - |
253 | | - if ( count($this->cache) > 1 ) { |
| 249 | + if ( count($this->cache) ) { |
254 | 250 | return isset($this->cache[$indexKey]) ? $this->cache[$indexKey] : -1; |
255 | 251 | } else { |
256 | 252 | return 0; |