Browse Source

Fix non-english name in collection updates

spaghetti 7 years ago
parent
commit
733113b0b7
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      sections/userhistory/subscribed_collages.php

+ 2
- 2
sections/userhistory/subscribed_collages.php View File

@@ -119,7 +119,7 @@ if (!$NumResults) {
119 119
       if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
120 120
         $DisplayName .= "onmouseover=\"getCover(event)\" data-cover=\"".ImageTools::process($WikiImage)."\" onmouseleave=\"ungetCover(event)\" ";
121 121
       }
122
-      $DisplayName .= "dir=\"ltr\">$GroupName</a>";
122
+      $DisplayName .= "dir=\"ltr\">".($GroupName ? $GroupName : ($GroupNameRJ ? $GroupNameRJ : $GroupNameJP))."</a>";
123 123
       if ($GroupYear > 0) {
124 124
         $DisplayName = "$DisplayName [$GroupYear]";
125 125
       }
@@ -170,7 +170,7 @@ if (!$NumResults) {
170 170
         if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
171 171
           $DisplayName .= "onmouseover=\"getCover(event)\" data-cover=\"".ImageTools::process($WikiImage)."\" onmouseleave=\"ungetCover(event)\" ";
172 172
         }
173
-        $DisplayName .= "dir=\"ltr\">$GroupName</a>";
173
+        $DisplayName .= "dir=\"ltr\">".($GroupName ? $GroupName : ($GroupNameRJ ? $GroupNameRJ : $GroupNameJP))."</a>";
174 174
 
175 175
         if ($Torrent['IsSnatched']) {
176 176
           $DisplayName .= ' ' . Format::torrent_label('Snatched!');

Loading…
Cancel
Save