summaryrefslogtreecommitdiffstats
path: root/application/controllers/tools.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/tools.php')
-rw-r--r--application/controllers/tools.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/application/controllers/tools.php b/application/controllers/tools.php
index 664a9e324..845597b08 100644
--- a/application/controllers/tools.php
+++ b/application/controllers/tools.php
@@ -14,9 +14,7 @@ class Tools extends MY_Controller {
parent::__construct();
$this->load->model('mfile');
- if (!$this->input->is_cli_request()) {
- throw new \exceptions\PublicApiException("api/cli-only", "This can only be called via CLI");
- }
+ $this->_require_cli_request();
}
function index()