Index: trunk/phase3/includes/specials/SpecialAllmessages.php |
— | — | @@ -34,6 +34,8 @@ |
35 | 35 | */ |
36 | 36 | protected $table; |
37 | 37 | |
| 38 | + protected $filter, $prefix, $langCode; |
| 39 | + |
38 | 40 | /** |
39 | 41 | * Constructor |
40 | 42 | */ |
— | — | @@ -159,6 +161,11 @@ |
160 | 162 | public $mLimitsShown; |
161 | 163 | |
162 | 164 | /** |
| 165 | + * @var Skin |
| 166 | + */ |
| 167 | + protected $mSkin; |
| 168 | + |
| 169 | + /** |
163 | 170 | * @var Language |
164 | 171 | */ |
165 | 172 | public $lang; |
— | — | @@ -276,7 +283,7 @@ |
277 | 284 | if( $customised !== $this->custom && |
278 | 285 | ( $descending && ( $key < $offset || !$offset ) || !$descending && $key > $offset ) && |
279 | 286 | ( ( $this->prefix && preg_match( $this->prefix, $key ) ) || $this->prefix === false ) |
280 | | - ){ |
| 287 | + ) { |
281 | 288 | $actual = wfMessage( $key )->inLanguage( $this->langcode )->plain(); |
282 | 289 | $default = wfMessage( $key )->inLanguage( $this->langcode )->useDatabase( false )->plain(); |
283 | 290 | $result->result[] = array( |
— | — | @@ -288,7 +295,9 @@ |
289 | 296 | ); |
290 | 297 | $count++; |
291 | 298 | } |
292 | | - if( $count == $limit ) break; |
| 299 | + if( $count == $limit ) { |
| 300 | + break; |
| 301 | + } |
293 | 302 | } |
294 | 303 | return $result; |
295 | 304 | } |
— | — | @@ -394,15 +403,19 @@ |
395 | 404 | 'am_default' => wfMsg( 'allmessagesdefault' ) |
396 | 405 | ); |
397 | 406 | } |
| 407 | + |
398 | 408 | function getTitle() { |
399 | 409 | return SpecialPage::getTitleFor( 'Allmessages', false ); |
400 | 410 | } |
| 411 | + |
401 | 412 | function isFieldSortable( $x ){ |
402 | 413 | return false; |
403 | 414 | } |
| 415 | + |
404 | 416 | function getDefaultSort(){ |
405 | 417 | return ''; |
406 | 418 | } |
| 419 | + |
407 | 420 | function getQueryInfo(){ |
408 | 421 | return ''; |
409 | 422 | } |