Commit 7fd33ed2 authored by webchick's avatar webchick
Browse files

#650528 by jide, casey, et al: Overlay should not appear when an...

#650528 by jide, casey, et al: Overlay should not appear when an administrative page is being viewed in the parent window.
parent bfe2c14b
......@@ -84,7 +84,8 @@ function overlay_init() {
// Unset the render parameter to avoid it being included in URLs on the page.
unset($_GET['render']);
}
else {
// Do not enable the overlay if we already are on an admin page.
else if (!path_is_admin(current_path())) {
// Otherwise add overlay parent code and our behavior.
overlay_set_mode('parent');
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment