diff --git a/zen-internals/template.theme-registry.inc b/zen-internals/template.theme-registry.inc index ac11fd6091ca377bc0b2fdcfb173f8d3a4c53c08..6fc1cc60408f23267577d23acb388a8eddfc50a9 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))