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";}