diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2011-06-14 16:52:45 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net ; true> | 2011-06-14 16:52:45 -0700 |
commit | 6045bb8ea25b77d99bdff8d741c99034f86b19c0 (patch) | |
tree | f509866b5e9c71fba79f0780fd242f88354bd894 /htdocs/moderate/src/header.inc.php | |
parent | 7565745f2cd5508f0ff408bb9dbfca1c54a0afa5 (diff) |
A few tweaks
Diffstat (limited to 'htdocs/moderate/src/header.inc.php')
-rw-r--r-- | htdocs/moderate/src/header.inc.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/htdocs/moderate/src/header.inc.php b/htdocs/moderate/src/header.inc.php index ef675e5..901344a 100644 --- a/htdocs/moderate/src/header.inc.php +++ b/htdocs/moderate/src/header.inc.php @@ -21,7 +21,9 @@ if (!isset($_SESSION['currentUser'])) { elements : "contentarea", theme : "advanced", theme_advanced_toolbar_location : "top", - theme_advanced_toolbar_align : "left" + theme_advanced_toolbar_align : "left", + document_base_url : "<?= buildUrl() ?>", + relative_urls : false }); </script> </head> @@ -48,7 +50,7 @@ if (!isset($_SESSION['currentUser'])) { <?php // Admin Navigation - if ($_SESSION['currentUser']->isAdmin()) { + if (isset($_SESSION['currentUser']) and $_SESSION['currentUser']->isAdmin()) { echo "<li><a href=\"". buildUrl('moderate/pages/') ."\">Pages</a></li>"; echo "<li><a href=\"". buildUrl('moderate/users/') ."\">Users</a></li>"; } |