summaryrefslogtreecommitdiffstats
path: root/application/controllers/user.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-04-08 23:31:32 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-04-09 20:47:37 +0200
commit35b45a559472a660dc08a3bc518161e7ab400175 (patch)
tree0a20dba59f2cb671b344eb5194835c0dec0f8aaa /application/controllers/user.php
parent3f01ddce9dff69a49493541882de85854cbcebe5 (diff)
more user changes
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/user.php')
-rw-r--r--application/controllers/user.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/application/controllers/user.php b/application/controllers/user.php
index 4dc92bea2..c4085a8f6 100644
--- a/application/controllers/user.php
+++ b/application/controllers/user.php
@@ -16,6 +16,7 @@ class User extends CI_Controller {
$this->load->helper('form');
$this->var->view_dir = "user/";
+ $this->data['username'] = $this->muser->get_username();
}
function index()
@@ -47,6 +48,7 @@ class User extends CI_Controller {
if ($uri) {
redirect($uri);
} else {
+ $this->data['username'] = $this->muser->get_username();
$this->load->view($this->var->view_dir.'header', $this->data);
$this->load->view($this->var->view_dir.'login_successful', $this->data);
$this->load->view($this->var->view_dir.'footer', $this->data);