From 899bc225386a6ae03c2b6d7c1074de6ce8dcc599 Mon Sep 17 00:00:00 2001 From: Daku Date: Tue, 31 Jan 2012 00:04:27 +0000 Subject: [PATCH] my favorites/feed tab should only show if ext is enabled --- themes/danbooru/layout.class.php | 3 ++- themes/lite/layout.class.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/themes/danbooru/layout.class.php b/themes/danbooru/layout.class.php index db350f14..b1b06999 100644 --- a/themes/danbooru/layout.class.php +++ b/themes/danbooru/layout.class.php @@ -142,7 +142,8 @@ class Layout { case "upload": if(file_exists("ext/numeric_score")){ $custom_sublinks .= "
  • Popular by Day/Month/Year
  • ";} $custom_sublinks .= "
  • All
  • "; - $custom_sublinks .= "
  • My Favorites
  • "; + if(file_exists("ext/favorites")){ $custom_sublinks .= "
  • My Favorites
  • ";} + if(file_exists("ext/rss_images")){ $custom_sublinks .= "
  • Feed
  • ";} if(file_exists("ext/random_image")){ $custom_sublinks .= "
  • Random Image
  • ";} if($hw){ $custom_sublinks .= "
  • Help
  • "; }else{ $custom_sublinks .= "
  • Help
  • ";} diff --git a/themes/lite/layout.class.php b/themes/lite/layout.class.php index 6532aa2a..16fa89ef 100644 --- a/themes/lite/layout.class.php +++ b/themes/lite/layout.class.php @@ -96,8 +96,8 @@ class Layout { case "post": if(file_exists("ext/numeric_score")){ $cs .= "Popular by Day/Month/Year ";} $cs .= "All"; - $cs .= "My Favorites"; - $cs .= "Feed"; + if(file_exists("ext/favorites")){ $cs .= "My Favorites";} + if(file_exists("ext/rss_images")){ $cs .= "Feed";} if(file_exists("ext/random_image")){ $cs .= "Random Image";} if($hw){ $cs .= "Help"; }else{ $cs .= "Help";}