summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-04-29 16:13:12 +0000
committerDries Buytaert <dries@buytaert.net>2007-04-29 16:13:12 +0000
commitad67a17f8be0ebbb40c60ba6bc26c20da6a122e7 (patch)
tree0d77e779419f1c517dc9ae8f9a203084e6914d4d
parentab65c232f4d1e05e7040b97bddaa0dc5c7b25bbc (diff)
downloadbrdo-ad67a17f8be0ebbb40c60ba6bc26c20da6a122e7.tar.gz
brdo-ad67a17f8be0ebbb40c60ba6bc26c20da6a122e7.tar.bz2
- Patch #130987 by alienbrain: fixed problem with theme registry patch.
-rw-r--r--includes/theme.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index c3e8253cd..84e3406dd 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -291,7 +291,7 @@ function list_theme_engines($refresh = FALSE) {
* the $variables array:
*
* ENGINE_engine_preprocess(&$variables)
- * This function should only be implemented by theme engines and is exists
+ * This function should only be implemented by theme engines and exists
* so that the theme engine can set necessary variables. It is commonly
* used to set global variables such as $directory and $is_front_page.
* ENGINE_engine_preprocess_HOOK(&$variables)
@@ -349,7 +349,11 @@ function theme() {
// The theme call is a function.
// Include a file if this theme function is held elsewhere.
if (!empty($info['file'])) {
- include_once($info['file']);
+ $function_file = $info['file'];
+ if (isset($info['path'])) {
+ $function_file = $info['path'] .'/'. $function_file;
+ }
+ include_once($function_file);
}
return call_user_func_array($info['function'], $args);
}