commit | c5dccf70ef6d8420b0b858f36318fc4375b0e25d | [log] [tgz] |
---|---|---|
author | Phil Sturgeon <email@philsturgeon.co.uk> | Sat Aug 13 11:06:57 2011 -0600 |
committer | Phil Sturgeon <email@philsturgeon.co.uk> | Sat Aug 13 11:06:57 2011 -0600 |
tree | 2eb565ec84a1103d2106e28d589cb68a9279bfb3 | |
parent | add9ca05c17e5bfd17ded6a65b1a084f7da5d633 [diff] [blame] |
Get php_sapi_name() == 'cli' involved in the 'is this the command line?' decision.
diff --git a/system/core/Input.php b/system/core/Input.php index dc7612e..cfbef94 100644 --- a/system/core/Input.php +++ b/system/core/Input.php
@@ -672,7 +672,7 @@ */ public function is_cli_request() { - return (bool) defined('STDIN'); + return (php_sapi_name() == 'cli') or defined('STDIN'); } }