1
0

Fix an issue where the request does not contain the 'sb' index and the parameters for the Theme_View::site_menu method had changed.

This commit is contained in:
Tim Almdal 2010-06-23 10:55:02 -07:00
parent 97088a3b03
commit ab5659be89

View File

@ -5,8 +5,8 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- Copyright (c) 2009 DragonSoft. All Rights Reserved -->
<? $sidebarvisible = $_REQUEST['sb'];
if (empty($sidebarvisible)) {
<?
if (empty($_REQUEST['sb'])) {
if (isset($_COOKIE['gd_sidebar'])) {
$sidebarvisible = $_COOKIE['gd_sidebar'];
} else {
@ -14,6 +14,7 @@
}
} else {
// Sidebar position is kept for 360 days
$sidebarvisible = $_REQUEST['sb'];
setcookie("gd_sidebar", $sidebarvisible, time() + 31536000);
}
@ -87,7 +88,7 @@
<? if (!$user->guest): ?>
<div id="g-site-menu">
<?= $theme->site_menu() ?>
<?= $theme->site_menu("") ?>
</div>
<? endif ?>
<?= $theme->messages() ?>