Skip to content
Browse files

MDL-27116 theme_config::find_theme_location() respects $CFG->themedir

Credit goes to Jai Gupta for the idea of the patch.
  • Loading branch information...
1 parent 7daba27 commit 4207d4774261b25adc950be3ffc36e4c8ea9335a @mudrd8mz mudrd8mz committed Apr 26, 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 4207d47

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