summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/Main.php2
-rw-r--r--application/controllers/User.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/application/controllers/Main.php b/application/controllers/Main.php
index 31100f3d7..2e8ab3851 100644
--- a/application/controllers/Main.php
+++ b/application/controllers/Main.php
@@ -19,7 +19,7 @@ class Main extends MY_Controller {
function index()
{
- if ($this->input->is_cli_request()) {
+ if (is_cli()) {
output_cli_usage();
exit;
}
diff --git a/application/controllers/User.php b/application/controllers/User.php
index 01e310a8f..892bbe1b6 100644
--- a/application/controllers/User.php
+++ b/application/controllers/User.php
@@ -16,7 +16,7 @@ class User extends MY_Controller {
function index()
{
- if ($this->input->is_cli_request()) {
+ if (is_cli()) {
$this->load->library("../controllers/tools");
return $this->tools->index();
}