From c710971d56c7e9f804b8703d4d2d3a20fcc2bc16 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 18 Aug 2009 11:03:12 +0000 Subject: - Patch #546390 by cweagans: fix CLI detection in install.php --- install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install.php') diff --git a/install.php b/install.php index d54ab09fe..11f8d3010 100644 --- a/install.php +++ b/install.php @@ -1696,7 +1696,7 @@ function install_configure_form_submit($form, &$form_state) { // file to be included by command line scripts so that it can be used as an // API. It should be removed after the API functions in this file have been // moved out to a separate, reusable location. -if (realpath($_SERVER['SCRIPT_FILENAME']) == __FILE__) { +if (php_sapi_name() != 'cli' && !empty($_SERVER['REMOTE_ADDR'])) { // Start the installer. install_drupal(); } -- cgit v1.2.3