From: moodler Date: Tue, 31 Aug 2004 13:37:24 +0000 (+0000) Subject: Merged robustness check X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9cccc2efdaba4813cac8faee9a48fc4fb426cc2e;p=moodle.git Merged robustness check --- 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 "";
$strtheme 
body\">$theme