diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-06-01 18:20:15 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-06-01 18:20:15 -0700 |
commit | 8c580f75ed7077e55e2ef109c2ab4783c3d98371 (patch) | |
tree | 2bf1f378634e45a0a7bd2a38b12c61f98b64136b | |
parent | c31434ea3c3f819950f32337dfe80f83099c5b28 (diff) |
use PHP_SAPI instead of php_sapi_name()
-rw-r--r-- | installer/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/installer/index.php b/installer/index.php index 6b1d434b..317f27b8 100644 --- a/installer/index.php +++ b/installer/index.php @@ -27,7 +27,7 @@ if (version_compare(PHP_VERSION, "5.2.3", "<")) { } require(DOCROOT . "installer/installer.php"); -if (php_sapi_name() == "cli") { +if (PHP_SAPI == "cli") { include("cli.php"); } else { if (@$_GET["page"] == "check") { |