-
- $ArtistEvents = LastFM::get_artist_events($ArtistID, $Name);
- $Debug->log_var($ArtistEvents);
- if ($ArtistEvents === false) { // Something went wrong
- echo '
An error occurred when retrieving concert info.
';
- } elseif (!isset($ArtistEvents['events']['event'])) { // No upcoming events
- echo '
This artist has no upcoming concerts.
';
- } else {
- echo '
';
- if (isset($ArtistEvents['events']['event'][0])) { // Multiple events
- foreach ($ArtistEvents['events']['event'] as $Event) {
- make_concert_link($Event);
- }
- } else { // Single event
- make_concert_link($ArtistEvents['events']['event']);
- }
- echo '
';
- }
-?>
+
>
+ =$Concerts?>
}
-?>
-
function get_concert_post_template($Artist, $Event)
{
$With = "";
diff --git a/sections/user/takemoderate.php b/sections/user/takemoderate.php
index c749b1d6..0fe79e57 100644
--- a/sections/user/takemoderate.php
+++ b/sections/user/takemoderate.php
@@ -547,7 +547,7 @@
$UpdateSet[]="m.can_leech='1'";
$UpdateSet[]="i.RatioWatchDownload='0'";
} else {
- $EnableStr .= ' (Ratio: '.number_format($Cur['Uploaded']/$Cur['Downloaded'],2).', RR: '.number_format($Cur['RequiredRatio'],2).')';
+ $EnableStr .= ' (Ratio: '.Format::get_ratio_html($Cur['Uploaded'], $Cur['Downloaded'], false).', RR: '.number_format($Cur['RequiredRatio'],2).')';
if ($Cur['RatioWatchEnds'] != '0000-00-00 00:00:00') {
$UpdateSet[]="i.RatioWatchEnds=NOW()";
$UpdateSet[]="i.RatioWatchDownload=m.Downloaded";