From 9cccc2efdaba4813cac8faee9a48fc4fb426cc2e Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 31 Aug 2004 13:37:24 +0000 Subject: [PATCH] Merged robustness check --- theme/index.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/theme/index.php b/theme/index.php index b8cf52c2e3..54ecababdc 100644 --- a/theme/index.php +++ b/theme/index.php @@ -72,7 +72,12 @@ echo ""; echo ""; foreach ($themes as $theme) { - include ("$theme/config.php"); + + if (!file_exists("$CFG->dirroot/theme/$theme/config.php")) { // bad folder + continue; + } + include ("$CFG->dirroot/theme/$theme/config.php"); + echo ""; if ($CFG->theme == $theme) { echo ""; -- 2.39.5
$strtheme 
body\">$theme