* (bug 5903) When requesting the raw source of a non-existent message page,
return blank content (as opposed to the message key)
* Improve default blank content of MediaWiki:Common.css and MediaWiki:Monobook.css
-* (bug 5852) Localise "number of watching users" according to user locale
== Compatibility ==
return( $wgUseRCPatrol && $wgUser->isAllowed( 'patrol' ) );
}
- /**
- * Format a number according to the user's locale
- *
- * @param $number Number to format
- * @return string
- */
- function formatNum( $number ) {
- global $wgLang;
- return $wgLang->formatNum( $number );
- }
}
* Format a line using the old system (aka without any javascript).
*/
function recentChangesLine( &$rc, $watched = false ) {
+ global $wgContLang;
$fname = 'ChangesList::recentChangesLineOld';
wfProfileIn( $fname );
$this->insertComment($s, $rc);
if($rc->numberofWatchingusers > 0) {
- $s .= ' ' . wfMsg('number_of_watching_users_RCview', $this->formatNum( $rc->numberofWatchingusers ) );
+ $s .= ' ' . wfMsg('number_of_watching_users_RCview', $wgContLang->formatNum($rc->numberofWatchingusers));
}
$s .= "</li>\n";
$r .= $users;
if($block[0]->numberofWatchingusers > 0) {
- $r .= wfMsg('number_of_watching_users_RCview', $this->formatNum($block[0]->numberofWatchingusers));
+ global $wgContLang;
+ $r .= wfMsg('number_of_watching_users_RCview', $wgContLang->formatNum($block[0]->numberofWatchingusers));
}
$r .= "<br />\n";
* @return string a HTML formated line (generated using $r)
*/
function recentChangesBlockLine( $rcObj ) {
+ global $wgContLang;
# Get rc_xxxx variables
extract( $rcObj->mAttribs );
}
if( $rcObj->numberofWatchingusers > 0 ) {
- $r .= wfMsg('number_of_watching_users_RCview', $this->formatNum( $rcObj->numberofWatchingusers ) );
+ $r .= wfMsg('number_of_watching_users_RCview', $wgContLang->formatNum($rcObj->numberofWatchingusers));
}
$r .= "<br />\n";