Merged robustness check

This commit is contained in:
moodler
2004-08-31 13:37:24 +00:00
parent 59812bc74f
commit 9cccc2efda
+6 -1
View File
@@ -72,7 +72,12 @@
echo "<TABLE ALIGN=CENTER cellpadding=7 cellspacing=5>";
echo "<TR><TH class=\"generaltableheader\">$strtheme<TH class=\"generaltableheader\">&nbsp;</TR>";
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 "<TR>";
if ($CFG->theme == $theme) {
echo "<TD ALIGN=CENTER BGCOLOR=\"$THEME->body\">$theme</TD>";