Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php |
— | — | @@ -366,7 +366,7 @@ |
367 | 367 | * Print out all campaigns found in db |
368 | 368 | */ |
369 | 369 | function listNotices() { |
370 | | - global $wgOut, $wgUser, $wgUserLang; |
| 370 | + global $wgOut, $wgUser, $wgLang; |
371 | 371 | |
372 | 372 | // Get connection |
373 | 373 | $dbr = wfGetDB( DB_SLAVE ); |
— | — | @@ -409,7 +409,7 @@ |
410 | 410 | 'not_project', |
411 | 411 | 'not_locked' |
412 | 412 | ), |
413 | | - array ( 'not_language' => $wgUserLang ), |
| 413 | + array ( 'not_language' => $wgLang ), |
414 | 414 | __METHOD__, |
415 | 415 | array( 'ORDER BY' => 'not_id' ) |
416 | 416 | ); |
— | — | @@ -478,7 +478,7 @@ |
479 | 479 | if ( $language_count > 3 ) { |
480 | 480 | $languageList = wfMsg ( 'centralnotice-multiple_languages', $language_count ); |
481 | 481 | } elseif ( $language_count > 0 ) { |
482 | | - $languageList = Language::commaList( $project_langs ); |
| 482 | + $languageList = $wgLang->commaList( $project_langs ); |
483 | 483 | } |
484 | 484 | $fields[] = $languageList; |
485 | 485 | |