From 4207d4774261b25adc950be3ffc36e4c8ea9335a Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Tue, 26 Apr 2011 22:56:32 +0200 Subject: [PATCH] MDL-27116 theme_config::find_theme_location() respects $CFG->themedir Credit goes to Jai Gupta for the idea of the patch. --- lib/outputlib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/outputlib.php b/lib/outputlib.php index 8a65f3eabf6..304b7443822 100644 --- a/lib/outputlib.php +++ b/lib/outputlib.php @@ -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; }