Skip to content
Browse files

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

…/moodle
  • Loading branch information...
2 parents 598a9f7 + 3dd1d7e commit 0af90dca017d97cef20040da3bff9e53c0d0e26c Sam Hemelryk committed May 2, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/outputlib.php
View
3 lib/outputlib.php
@@ -1035,6 +1035,9 @@ private static function find_theme_location($themename) {
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;
}

0 comments on commit 0af90dc

Please sign in to comment.
Something went wrong with that request. Please try again.