summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkaidjohnson2013-07-29 02:42:11 (GMT)
committerJohnAlbin2013-07-29 02:42:11 (GMT)
commita8ecc4216c09d7f9966343d45c68d5f09ac8e9fe (patch)
tree528905c9bf20305bb522c1c695a62b5c688e6a52
parent99cc5d8f55f4d935b4728dd4b58f02d6e835c9f3 (diff)
Issue #1991374: Fix PHP notice when using Zen subtheme as installation theme
-rw-r--r--zen-internals/template.theme-registry.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/zen-internals/template.theme-registry.inc b/zen-internals/template.theme-registry.inc
index ac11fd6..6fc1cc6 100644
--- a/zen-internals/template.theme-registry.inc
+++ b/zen-internals/template.theme-registry.inc
@@ -12,8 +12,10 @@
function _zen_theme(&$existing, $type, $theme, $path) {
// If we are auto-rebuilding the theme registry, warn about the feature.
if (
+ // Don't display on update.php or install.php.
+ !defined('MAINTENANCE_MODE')
// Only display for site config admins.
- function_exists('user_access') && user_access('administer site configuration')
+ && function_exists('user_access') && user_access('administer site configuration')
&& theme_get_setting('zen_rebuild_registry')
// Always display in the admin section, otherwise limit to three per hour.
&& (arg(0) == 'admin' || flood_is_allowed($GLOBALS['theme'] . '_rebuild_registry_warning', 3))