Fix reload loop on switching skins

pull/380/head
m-bene 2014-04-11 09:40:23 +02:00
parent db5a8fe194
commit f737af15b9
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ if($tab == 'skins') {
if (isset($_GET['skin-choice'])) { if (isset($_GET['skin-choice'])) {
setcookie('zmSkin',$_GET['skin-choice']); setcookie('zmSkin',$_GET['skin-choice']);
//header("Location: index.php?view=options&tab=skins&reset_parent=1"); //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'])) { if (isset($_GET['skin-choice'])) {
setcookie('zmSkin',$_GET['skin-choice']); setcookie('zmSkin',$_GET['skin-choice']);
//header("Location: index.php?view=options&tab=skins&reset_parent=1"); //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>";
} }
?> ?>