Browse Source

Force torrent title for categories without grouping

spaghetti 7 years ago
parent
commit
d037a6a7d4
1 changed files with 2 additions and 3 deletions
  1. 2
    3
      sections/torrents/details.php

+ 2
- 3
sections/torrents/details.php View File

@@ -137,7 +137,6 @@ View::show_header($Title, 'browse,comments,torrent,bbcode,recommend,cover_art,su
137 137
       <a href="#" id="bookmarklink_torrent_<?=$GroupID?>" class="add_bookmark brackets" onclick="Bookmark('torrent', <?=$GroupID?>, 'Remove bookmark'); return false;">Bookmark</a>
138 138
 <?  } ?>
139 139
       <a href="#" id="subscribelink_torrents<?=$GroupID?>" class="brackets" onclick="SubscribeComments('torrents', <?=$GroupID?>); return false;"><?=Subscriptions::has_subscribed_comments('torrents', $GroupID) !== false ? 'Unsubscribe' : 'Subscribe'?></a>
140
-<!-- <a href="#" id="recommend" class="brackets">Recommend</a> -->
141 140
 <?
142 141
   if ($Categories[$GroupCategoryID-1] == 'Movies' || $Categories[$GroupCategoryID-1] == 'Anime' || $Categories[$GroupCategoryID-1] == 'Manga' || $Categories[$GroupCategoryID-1] == 'Games') { ?>
143 142
       <a href="upload.php?groupid=<?=$GroupID?>" class="brackets">Add format</a>
@@ -474,8 +473,8 @@ foreach ($TorrentList as $Torrent) {
474 473
   if ($Archive) {
475 474
     $ExtraInfo .= $AddExtra.display_str('Archived ('.$Archive.')'); $AddExtra=' / ';
476 475
   }
477
-  if (!$ExtraInfo) {
478
-    $ExtraInfo = $GroupName ; $AddExtra=' / ';
476
+  if (!$ExtraInfo || $GroupCategoryID == 5) {
477
+    $ExtraInfo = $GroupName; $AddExtra=' / ';
479 478
   }
480 479
   if ($IsLeeching) { $ExtraInfo.=$AddExtra. Format::torrent_label('Leeching'); $AddExtra=' / '; }
481 480
   else if ($IsSeeding) { $ExtraInfo.=$AddExtra . Format::torrent_label('Seeding'); $AddExtra=' / '; }

Loading…
Cancel
Save