diff options
Diffstat (limited to 'htdocs/moderate/src')
-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>"; } |