[dev] CVS w/ recent initial_page changes + no cookies
mays@optonline.net
mays@optonline.net
Thu, 12 Jul 2001 11:43:05 -0400
The changes for initial_page support appends to the result of Horde::url.
It should append to webroot inside of Horde::url. Without this change,
cookie-less sessions do not work.
Mark
--- /cvs/horde/menu.php Wed Jul 11 15:53:27 2001 1.42
+++ /cvs/horde/menu.php Thu Jul 12 11:31:41 2001
@@ -31,7 +31,7 @@
if ($params['show']) {
$line = '<td class="header" align="center" valign="bottom">';
if (!$opener) {
- $line .= '<a class="menuitem" href="' . Horde::url($params['webroot']) . '/' . ( isset($params['initial_page']) ? $params['initial_page'] : '' ) . '" target="main">';
+ $line .= '<a class="menuitem" href="' . Horde::url($params['webroot'] . ( isset($params['initial_page']) ? '/' . $params['initial_page'] : '' )) . '" target="main">';
} else {
$line .= '<a class="menuitem" href="" onclick="window.opener.location.href=\'' . Horde::url($params['webroot']) . '\'; return false;">';
}