Browse Source

Only show top 10 donors link if donations are enabled

spaghetti 7 years ago
parent
commit
29e6f8a7df
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      classes/top10view.class.php

+ 2
- 0
classes/top10view.class.php View File

@@ -8,7 +8,9 @@ class Top10View {
8 8
       <a href="top10.php?type=torrents" class="brackets"><?=self::get_selected_link("Torrents", $Selected == "torrents")?></a>
9 9
       <a href="top10.php?type=users" class="brackets"><?=self::get_selected_link("Users", $Selected == "users")?></a>
10 10
       <a href="top10.php?type=tags" class="brackets"><?=self::get_selected_link("Tags", $Selected == "tags")?></a>
11
+<?  if (FEATURE_DONATE) { ?>
11 12
       <a href="top10.php?type=donors" class="brackets"><?=self::get_selected_link("Donors", $Selected == "donors")?></a>
13
+<?  } ?>
12 14
     </div>
13 15
 <?
14 16
   }

Loading…
Cancel
Save