summaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-06-01 18:20:15 -0700
committerBharat Mediratta <bharat@menalto.com>2009-06-01 18:20:15 -0700
commit8c580f75ed7077e55e2ef109c2ab4783c3d98371 (patch)
tree2bf1f378634e45a0a7bd2a38b12c61f98b64136b /installer
parentc31434ea3c3f819950f32337dfe80f83099c5b28 (diff)
use PHP_SAPI instead of php_sapi_name()
Diffstat (limited to 'installer')
-rw-r--r--installer/index.php2
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") {