Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MDL-27116 theme_config::find_theme_location() respects $CFG->themedir
Credit goes to Jai Gupta for the idea of the patch.
  • Loading branch information
mudrd8mz committed Apr 27, 2011
1 parent b8df941 commit 3dd1d7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/outputlib.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3dd1d7e

Please sign in to comment.