summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2013-03-30 15:03:18 -0400
committerDavid Rothstein <drothstein@gmail.com>2013-03-30 15:03:18 -0400
commit815faefa64eaa7d376dcaba42bc52c40fdd9a12a (patch)
tree735a29ec5c1febf5e9e66853a380de0d134f390e /includes/theme.inc
parentc6a5487a903ebc3be5b41b15ade64e3eb1cc3bb8 (diff)
downloadbrdo-815faefa64eaa7d376dcaba42bc52c40fdd9a12a.tar.gz
brdo-815faefa64eaa7d376dcaba42bc52c40fdd9a12a.tar.bz2
Issue #1723828 by hass: Fixed incorrect log message when theme() is called for a theme hook that does not exist.
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 4c454ba40..5920624dc 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -769,7 +769,7 @@ function _theme_build_registry($theme, $base_theme, $theme_engine) {
* 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
* 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) {
$list = &drupal_static(__FUNCTION__, array());
@@ -1033,7 +1033,7 @@ function theme($hook, $variables = array()) {
// Only log a message when not trying theme suggestions ($hook being an
// array).
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 '';
}