summaryrefslogtreecommitdiffstats
path: root/application/errors
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-09-26 11:49:15 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-11-05 19:44:15 +0100
commit53c8126583f33141014d0f86104637168571b89d (patch)
treebbac577f76d74c0807782b6659b3bee8e7e9ab73 /application/errors
parent6ad2fad4ced986497759abe657f71481b0e497a7 (diff)
Simplify error page for cli requests
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/errors')
-rw-r--r--application/errors/error_general.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/application/errors/error_general.php b/application/errors/error_general.php
index ec9057025..e372cfa7f 100644
--- a/application/errors/error_general.php
+++ b/application/errors/error_general.php
@@ -11,11 +11,7 @@ if (class_exists("CI_Controller") && !isset($GLOBALS["is_error_page"])) {
$CI->load->helper("filebin");
$CI->load->helper("url");
- if ($CI->input->is_cli_request()) {
- is_cli_client(true);
- }
-
- if (is_cli_client()) {
+ if (is_cli_client() || $CI->input->is_cli_request()) {
$message = str_replace("</p>", "</p>\n", $message);
$message = strip_tags($message);
echo "$heading: $message\n";