Merge pull request #380 from m-bene/switchLayout

Fix reload loop on switching skins
pull/395/head
Kyle Johnson 2014-04-18 09:38:17 -04:00
commit 83b2b0c619
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ if($tab == 'skins') {
if (isset($_GET['skin-choice'])) {
setcookie('zmSkin',$_GET['skin-choice']);
//header("Location: index.php?view=options&tab=skins&reset_parent=1");
echo '<script type="text/javascript">window.opener.location.reload();window.location.reload();</script>';
echo "<script type=\"text/javascript\">window.opener.location.reload();window.location.href=\"{$_SERVER['PHP_SELF']}?view={$view}&tab={$tab}\"</script>";
}
?>

View File

@ -87,7 +87,7 @@ if($tab == 'skins') {
if (isset($_GET['skin-choice'])) {
setcookie('zmSkin',$_GET['skin-choice']);
//header("Location: index.php?view=options&tab=skins&reset_parent=1");
echo '<script type="text/javascript">window.opener.location.reload();window.location.reload();</script>';
echo "<script type=\"text/javascript\">window.opener.location.reload();window.location.href=\"{$_SERVER['PHP_SELF']}?view={$view}&tab={$tab}\"</script>";
}
?>