Skip to content
Snippets Groups Projects
Commit 3e4454bd authored by Steven Wittens's avatar Steven Wittens
Browse files

I added a trailing dot to the numbers in the ratings list. Call me a perfectionist...

parent 1559e6c2
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -27,7 +27,7 @@ function rating_list($limit) { ...@@ -27,7 +27,7 @@ function rating_list($limit) {
$output .= "<TABLE CELLPADDING=\"1\" CELLSPACING=\"1\">\n"; $output .= "<TABLE CELLPADDING=\"1\" CELLSPACING=\"1\">\n";
while ($account = db_fetch_object($result)) { while ($account = db_fetch_object($result)) {
$ranking = $account->old - $account->new; $ranking = $account->old - $account->new;
$output .= "<TR><TD ALIGN=\"right\">". ++$i ."</TD><TD>". format_username($account->userid) ."</TD><TD ALIGN=\"right\">". check_output($account->rating) ."</TD><TD>(". ($ranking < 0 ? "" : "+") ."$ranking)</TD></TR>"; $output .= "<TR><TD ALIGN=\"right\">". ++$i .".</TD><TD>". format_username($account->userid) ."</TD><TD ALIGN=\"right\">". check_output($account->rating) ."</TD><TD>(". ($ranking < 0 ? "" : "+") ."$ranking)</TD></TR>";
} }
$output .= "</TABLE>\n"; $output .= "</TABLE>\n";
return $output; return $output;
...@@ -47,4 +47,4 @@ function rating_block() { ...@@ -47,4 +47,4 @@ function rating_block() {
return $block; return $block;
} }
?> ?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment