Merge branch 'MDL-27116-themedir-config' of git://github.com/mudrd8mz/moodle

This commit is contained in:
Sam Hemelryk
2011-05-02 14:16:13 +08:00
+3
View File
@@ -1035,6 +1035,9 @@ class theme_config {
if (file_exists("$CFG->dirroot/theme/$themename/config.php")) {
$dir = "$CFG->dirroot/theme/$themename";
} else if (!empty($CFG->themedir) and file_exists("$CFG->themedir/$themename/config.php")) {
$dir = "$CFG->themedir/$themename";
} else {
return null;
}