summaryrefslogtreecommitdiffstats
path: root/application/models/muser.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-04-09 11:22:03 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-04-09 20:48:14 +0200
commitcb8b733a6c2333ff90d3af0fc37e8c21c73d9e7a (patch)
treedf73e68d134ba5100e454d2da41b6276dc4eb5c8 /application/models/muser.php
parent2f149783585b88033f425a2ef4a0fdb06c8fb9f9 (diff)
Move is_cli_client() and random_id() to helper
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models/muser.php')
-rw-r--r--application/models/muser.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/application/models/muser.php b/application/models/muser.php
index 0fc99ab85..f3176d06d 100644
--- a/application/models/muser.php
+++ b/application/models/muser.php
@@ -5,6 +5,7 @@ class Muser extends CI_Model {
{
parent::__construct();
$this->load->library("session");
+ $this->load->helper("filebin");
}
function logged_in()
@@ -56,7 +57,7 @@ class Muser extends CI_Model {
if ($this->logged_in()) {
return true;
} else {
- if ($this->file_mod->is_cli_client()) {
+ if (is_cli_client()) {
echo "FileBin requires you to have an account, please go to the homepage for more information.\n";
exit();
} else {