diff options
author | vlakoff <vlakoff@gmail.com> | 2013-08-06 14:46:00 +0200 |
---|---|---|
committer | vlakoff <vlakoff@gmail.com> | 2013-08-06 14:49:52 +0200 |
commit | 40d124924ea331c6a57ab1b3f743299a41eb3f0c (patch) | |
tree | f1ca126a98fddf103dec6d544536d6d240d32ffc /system/core/Common.php | |
parent | c941d855dc32ec44107cb863596fa385c7aed015 (diff) |
Replace php_sapi_name() function with PHP_SAPI constant
exact same behavior but faster, shorter
Diffstat (limited to 'system/core/Common.php')
-rw-r--r-- | system/core/Common.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Common.php b/system/core/Common.php index b9e318394..28c60832c 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -538,7 +538,7 @@ if ( ! function_exists('set_status_header')) $server_protocol = isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : FALSE; - if (strpos(php_sapi_name(), 'cgi') === 0) + if (strpos(PHP_SAPI, 'cgi') === 0) { header('Status: '.$code.' '.$text, TRUE); } |