The modified include_once was doing really strange things when retrieving

valid themes! Changed to simply include. Seems to work fine now. Please
check it under PHP 4.x...
This commit is contained in:
stronk7
2005-02-13 22:40:21 +00:00
parent 8dc93b9445
commit 9e5c8dbdf6
+1 -1
View File
@@ -3829,7 +3829,7 @@ function get_list_of_themes() {
continue;
}
unset($THEME); // Note this is not the global one!! :-)
include_once("$CFG->dirroot/theme/$theme/config.php");
include("$CFG->dirroot/theme/$theme/config.php");
if (!isset($THEME->sheets)) { // Not a valid 1.5 theme
continue;
}