Commit 47877683 authored by catch's avatar catch
Browse files

Issue #1723828 by hass: Fixed Rename theme key to theme hook in error message.

parent 0ad22f5c
...@@ -649,7 +649,7 @@ function _theme_build_registry($theme, $base_theme, $theme_engine) { ...@@ -649,7 +649,7 @@ function _theme_build_registry($theme, $base_theme, $theme_engine) {
* their base theme), direct sub-themes of sub-themes, etc. The keys are * their base theme), direct sub-themes of sub-themes, etc. The keys are
* the themes' machine names, and the values are the themes' human-readable * the themes' machine names, and the values are the themes' human-readable
* names. This element is not set if there are no themes on the system that * names. This element is not set if there are no themes on the system that
* declare this theme as their base theme. * declare this theme as their base theme.
*/ */
function list_themes($refresh = FALSE) { function list_themes($refresh = FALSE) {
$list = &drupal_static(__FUNCTION__, array()); $list = &drupal_static(__FUNCTION__, array());
...@@ -913,7 +913,7 @@ function theme($hook, $variables = array()) { ...@@ -913,7 +913,7 @@ function theme($hook, $variables = array()) {
// Only log a message when not trying theme suggestions ($hook being an // Only log a message when not trying theme suggestions ($hook being an
// array). // array).
if (!isset($candidate)) { if (!isset($candidate)) {
watchdog('theme', 'Theme key "@key" not found.', array('@key' => $hook), WATCHDOG_WARNING); watchdog('theme', 'Theme hook %hook not found.', array('%hook' => $hook), WATCHDOG_WARNING);
} }
return ''; return '';
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment