Browse Source

Add month and year to freeleech time shorthand

spaghetti 7 years ago
parent
commit
13916bc263
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      sections/index/private.php

+ 1
- 1
sections/index/private.php View File

@@ -150,7 +150,7 @@ if (count($Freeleeches)) {
150 150
   for ($i = 0; $i < count($Freeleeches); $i++) {
151 151
     list($ID, $ExpiryTime, $Name, $Image) = $Freeleeches[$i];
152 152
     if ($ExpiryTime < time()) { continue; }
153
-    $DisplayTime = '('.str_replace(['week','day','hour','min','Just now','s',' '],['w','d','h','m','0m'],time_diff($ExpiryTime, 1, false)).') ';
153
+    $DisplayTime = '('.str_replace(['year','month','week','day','hour','min','Just now','s',' '],['y','M','w','d','h','m','0m'],time_diff($ExpiryTime, 1, false)).') ';
154 154
     $DisplayName = '<a href="torrents.php?torrentid='.$ID.'"';
155 155
     if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
156 156
       $DisplayName .= " onmouseover=\"getCover(event)\" data-cover=\"".ImageTools::process($Image, true)."\" onmouseleave=\"ungetCover(event)\"";

Loading…
Cancel
Save