There are circumstances in which the maintenance message can appear more than once. For example, if a page triggers an AJAX event that returns JSON, the theme layer is never invoked for the AJAX request and thus drupal_get_messages() is never called, which normally clears the messages buffer. The page load subsequent such AJAX event will display the maintenance message twice.
The fix is simple: setting $repeat = FALSE for drupal_set_message() will prevent duplication.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | maintenance_helper-965154-1.patch | 1.19 KB | c4rl |
Comments
Comment #1
c4rl commentedOne-line patch attached
Comment #2
claar commentedCommitted to 6.x-2.x -- thanks, c4rl!