From 8c580f75ed7077e55e2ef109c2ab4783c3d98371 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 1 Jun 2009 18:20:15 -0700 Subject: use PHP_SAPI instead of php_sapi_name() --- installer/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'installer/index.php') 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") { -- cgit v1.2.3