Skip to content
Snippets Groups Projects
Commit ad67a17f authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #130987 by alienbrain: fixed problem with theme registry patch.

parent ab65c232
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -291,7 +291,7 @@ function list_theme_engines($refresh = FALSE) { ...@@ -291,7 +291,7 @@ function list_theme_engines($refresh = FALSE) {
* the $variables array: * the $variables array:
* *
* ENGINE_engine_preprocess(&$variables) * 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 * so that the theme engine can set necessary variables. It is commonly
* used to set global variables such as $directory and $is_front_page. * used to set global variables such as $directory and $is_front_page.
* ENGINE_engine_preprocess_HOOK(&$variables) * ENGINE_engine_preprocess_HOOK(&$variables)
...@@ -349,7 +349,11 @@ function theme() { ...@@ -349,7 +349,11 @@ function theme() {
// The theme call is a function. // The theme call is a function.
// Include a file if this theme function is held elsewhere. // Include a file if this theme function is held elsewhere.
if (!empty($info['file'])) { 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); return call_user_func_array($info['function'], $args);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment