Commit da3aa99f authored by Jody Lynn's avatar Jody Lynn Committed by Crell

remove use of $_GET[token] from overlay

parent 6f911290
......@@ -688,7 +688,7 @@ function overlay_overlay_child_initialize() {
// it to the same content rendered in overlay_exit(), at the end of the page
// request. This allows us to check if anything actually did change, and, if
// so, trigger an immediate Ajax refresh of the parent window.
if (!empty($_POST) || isset($_GET['token'])) {
if (!empty($_POST) || isset(request()->query->get('token'))) {
foreach (overlay_supplemental_regions() as $region) {
overlay_store_rendered_content($region, overlay_render_region($region));
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