Skip to content
Snippets Groups Projects
Commit f50aa0f1 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #1788888 by jsacksick, David_Rothstein: Fixed Overlay at admin/modules...

Issue #1788888 by jsacksick, David_Rothstein: Fixed Overlay at admin/modules closes on submitting the form.
parent 2b08f2ec
No related branches found
No related tags found
No related merge requests found
......@@ -462,7 +462,10 @@ function overlay_get_mode() {
*/
function overlay_set_mode($mode = NULL) {
global $base_path;
$overlay_mode = &drupal_static(__FUNCTION__);
// We're not using drupal_static() here since the static cache is reset in
// drupal_flush_all_caches(); this could lead to the loss of the overlay when
// submitting the admin/modules form, for instance.
static $overlay_mode;
// Make sure external resources are not included more than once. Also return
// the current mode, if no mode was specified.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment