diff --git a/themes/danbooru/layout.class.php b/themes/danbooru/layout.class.php index 8781bbd4..7b50157a 100644 --- a/themes/danbooru/layout.class.php +++ b/themes/danbooru/layout.class.php @@ -142,7 +142,9 @@ class Layout { case "upload": $custom_sublinks .= "
  • All
  • "; $custom_sublinks .= "
  • My Favorites
  • "; - $custom_sublinks .= "
  • Help
  • "; + if(file_exists("ext/random_image")) $custom_sublinks .= "
  • Random Image
  • "; + if($hw){ $custom_sublinks .= "
  • Help
  • "; + }else{ $custom_sublinks .= "
  • Help
  • ";} break; case "comment": $custom_sublinks .= "
  • All
  • "; diff --git a/themes/lite/layout.class.php b/themes/lite/layout.class.php index 44e1ec08..1374a710 100644 --- a/themes/lite/layout.class.php +++ b/themes/lite/layout.class.php @@ -94,7 +94,9 @@ class Layout { $cs .= "All"; $cs .= "My Favorites"; $cs .= "Feed"; - if($hw) $cs .= "Help"; + if(file_exists("ext/random_image")) $cs .= "Random Image"; + if($hw){ $cs .= "Help"; + }else{ $cs .= "Help";} break; case "comment": $cs .= "All";