mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Fixes #4945 $_GET['configure'] was always being set in the admin area.
This commit is contained in:
parent
d2bb0d8a0b
commit
f4373195a2
@ -497,7 +497,7 @@ function getModal()
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if(e_PAGE == 'menus.php' && vartrue($_GET['configure'])) // Menu Manager iFrame disable
|
if(e_PAGE == 'menus.php' && !empty($_GET['configure'])) // Menu Manager iFrame disable
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -594,7 +594,7 @@ if($e107_popup != 1)
|
|||||||
|
|
||||||
e107::renderLayout($ADMIN_MODAL . $ADMIN_HEADER, ['sc'=>'admin']);
|
e107::renderLayout($ADMIN_MODAL . $ADMIN_HEADER, ['sc'=>'admin']);
|
||||||
}
|
}
|
||||||
elseif(!vartrue($_GET['configure']))
|
elseif(empty($_GET['configure']))
|
||||||
{
|
{
|
||||||
e107::css("inline", "body { padding:0px; margin:0; } "); // default padding for iFrame-only.
|
e107::css("inline", "body { padding:0px; margin:0; } "); // default padding for iFrame-only.
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user