summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-16 08:27:41 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-16 08:27:41 +0000
commit9dda515bbc8007685d523f7d202ea01588dd085e (patch)
tree285ac0d4f90acc6a68a7aeba77babe6b147ba72c /includes
parent1c7bca0b6f824dc99101802286a348dcfc71cd01 (diff)
downloadbrdo-9dda515bbc8007685d523f7d202ea01588dd085e.tar.gz
brdo-9dda515bbc8007685d523f7d202ea01588dd085e.tar.bz2
#412730 folllow-up by Crell: Move missing theme key notification to watchdog so that Drupal doesn't totally bomb out when theme function isn't found. (also fixes CLI installs)
Diffstat (limited to 'includes')
-rw-r--r--includes/theme.inc8
1 files changed, 1 insertions, 7 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index d2c5d6e64..2cb9853e1 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -37,12 +37,6 @@ define('MARK_UPDATED', 2);
* @} End of "Content markers".
*/
-
-/**
- * An exception to throw when a theme function is requested that does not exist.
- */
-class ThemeHookNotFoundException extends Exception {}
-
/**
* Determines if a theme is available to use.
*
@@ -768,7 +762,7 @@ function theme($hook, $variables = array()) {
}
if (!isset($hooks[$hook])) {
- throw new ThemeHookNotFoundException(t('Theme hook "@hook" not found.', array('@hook' => $hook)));
+ watchdog('theme', 'Theme key "@key" not found.', array('@key' => $hook), WATCHDOG_WARNING);
}
$info = $hooks[$hook];