diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-08-11 18:57:30 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-08-11 18:57:30 +0200 |
commit | c44d567d0973a0a73327ccbb9c4dbffd45a8d323 (patch) | |
tree | 47179dcd8f631412ae8ded24a3d3a76d164dfbb2 /application/views/header.php | |
parent | 01482576c809258769846e61fd9e90f7a4757ec4 (diff) | |
parent | af799b2a184864d6adb6bd224f57cd58bf78154b (diff) |
Merge branch 'working-split/api-keys' into working
Diffstat (limited to 'application/views/header.php')
-rw-r--r-- | application/views/header.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/views/header.php b/application/views/header.php index e85463735..ba6d6ae9d 100644 --- a/application/views/header.php +++ b/application/views/header.php @@ -45,7 +45,7 @@ if (is_cli_client() && !isset($force_full_html)) { </a> <?php if(!isset($GLOBALS["is_error_page"])) { ?> <ul class="nav pull-right"> - <?php if(isset($username) && $username) { ?> + <?php if(user_logged_in()) { ?> <li><a href="<?php echo site_url("/user/logout"); ?>">Logout</a></li> <?php } else { ?> <li class="dropdown"> @@ -65,7 +65,7 @@ if (is_cli_client() && !isset($force_full_html)) { </ul> <?php }; ?> <ul class="nav"> - <?php if(isset($username) && $username) { ?> + <?php if(user_logged_in()) { ?> <li><a href="<?php echo site_url("file/index") ?>"><i class="icon-pencil icon-white"></i> New</a></li> <li><a href="<?php echo site_url("file/upload_history") ?>"><i class="icon-book icon-white"></i> History</a></li> <li class="dropdown"> |