diff options
Diffstat (limited to 'includes/theme.inc')
-rw-r--r-- | includes/theme.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 5a7b591f8..87c8dba50 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -768,7 +768,11 @@ function theme($hook, $variables = array()) { } } if (!isset($hooks[$hook])) { - watchdog('theme', 'Theme key "@key" not found.', array('@key' => $hook), WATCHDOG_WARNING); + // 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); + } return ''; } } |