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
       if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
119
       if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
120
         $DisplayName .= "onmouseover=\"getCover(event)\" data-cover=\"".ImageTools::process($WikiImage)."\" onmouseleave=\"ungetCover(event)\" ";
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
       if ($GroupYear > 0) {
123
       if ($GroupYear > 0) {
124
         $DisplayName = "$DisplayName [$GroupYear]";
124
         $DisplayName = "$DisplayName [$GroupYear]";
125
       }
125
       }
170
         if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
170
         if (!isset($LoggedUser['CoverArt']) || $LoggedUser['CoverArt']) {
171
           $DisplayName .= "onmouseover=\"getCover(event)\" data-cover=\"".ImageTools::process($WikiImage)."\" onmouseleave=\"ungetCover(event)\" ";
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
         if ($Torrent['IsSnatched']) {
175
         if ($Torrent['IsSnatched']) {
176
           $DisplayName .= ' ' . Format::torrent_label('Snatched!');
176
           $DisplayName .= ' ' . Format::torrent_label('Snatched!');

Loading…
Cancel
Save