Index: zen/template.theme-registry.inc
===================================================================
--- zen/template.theme-registry.inc (revision 1)
+++ zen/template.theme-registry.inc (working copy)
@@ -27,7 +27,10 @@
// If we are auto-rebuilding the theme registry, warn about feature.
if (theme_get_setting('zen_rebuild_registry') && $theme == $GLOBALS['theme']) {
- drupal_set_message(t('The theme registry has been rebuilt. Turn off this feature on production websites.', array('!link' => base_path() . 'admin/build/themes/settings/' . $GLOBALS['theme'])), 'warning');
+ if (flood_is_allowed('zen_rebuild_registry_warning', 1)) {
+ flood_register_event('zen_rebuild_registry_warning');
+ drupal_set_message(t('The theme registry is being rebuilt on every request. Remember to turn off this feature on production websites.', array('!link' => base_path() . 'admin/build/themes/settings/' . $GLOBALS['theme'])), 'warning');
+ }
}
// Return nothing.