diff options
Diffstat (limited to 'MLEB/Translate/specials/SpecialSupportedLanguages.php')
-rw-r--r-- | MLEB/Translate/specials/SpecialSupportedLanguages.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MLEB/Translate/specials/SpecialSupportedLanguages.php b/MLEB/Translate/specials/SpecialSupportedLanguages.php index d7f454f1..63f78109 100644 --- a/MLEB/Translate/specials/SpecialSupportedLanguages.php +++ b/MLEB/Translate/specials/SpecialSupportedLanguages.php @@ -33,7 +33,7 @@ class SpecialSupportedLanguages extends SpecialPage { return 'wiki'; } - function getDescription() { + public function getDescription() { return $this->msg( 'supportedlanguages' )->text(); } @@ -354,7 +354,7 @@ class SpecialSupportedLanguages extends SpecialPage { ->numParams( $count, $last )->text(); $last = max( 1, min( $period, $last ) ); $styles['border-bottom'] = '3px solid #' . - $statsTable->getBackgroundColor( $period - $last, $period ); + $statsTable->getBackgroundColor( ( $period - $last ) / $period ); } else { $enc = "<del>$enc</del>"; } @@ -457,7 +457,7 @@ class SpecialSupportedLanguages extends SpecialPage { for ( $i = 0; $i <= $period; $i += 30 ) { $iFormatted = htmlspecialchars( $this->getLanguage()->formatNum( $i ) ); $legend .= '<span style="background-color:#' . - $statsTable->getBackgroundColor( $period - $i, $period ) . + $statsTable->getBackgroundColor( ( $period - $i ) / $period ) . "\"> $iFormatted</span>"; } |