From: robin Date: Sun, 18 Nov 2012 02:52:39 +0000 (+0100) Subject: Replace deprecated HTML attributes X-Git-Tag: 1.31.0-rc.0~21597^2 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=bf13ec7ccdb2ef2b4886aa57d20f0f9b3b87540c;p=lhc%2Fweb%2Fwiklou.git Replace deprecated HTML attributes Replace deprecated bgcolor="" with style="background-color:;", and remove deprecated cellpadding and cellspacing (which is not needed since the wikitable class is used). Change-Id: I0f332fb520ea88e3d3f1abce3c423f95a5c224c8 --- diff --git a/maintenance/language/StatOutputs.php b/maintenance/language/StatOutputs.php index d77029e743..20fb477872 100644 --- a/maintenance/language/StatOutputs.php +++ b/maintenance/language/StatOutputs.php @@ -60,7 +60,7 @@ class wikiStatsOutput extends statsOutput { echo ', as well as the following languages that are not intended for system message translations, usually because they redirect to other language codes: ' . implode( ', ', $dummyCodes ); } echo ".\n\n"; # dot to end sentence - echo '{| class="sortable wikitable" border="2" cellpadding="4" cellspacing="0" style="background-color: #F9F9F9; border: 1px #AAAAAA solid; border-collapse: collapse; clear:both;" width="100%"' . "\n"; + echo '{| class="sortable wikitable" border="2" style="background-color: #F9F9F9; border: 1px #AAAAAA solid; border-collapse: collapse; clear:both; width:100%;"' . "\n"; } function footer() { echo "|}\n"; @@ -96,7 +96,7 @@ class wikiStatsOutput extends statsOutput { $color = $red . $green . $blue; $percent = parent::formatPercent( $subset, $total, $revert, $accuracy ); - return 'bgcolor="#' . $color . '"|' . $percent; + return 'style="background-color:#' . $color . ';"|' . $percent; } }