diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-08-18 11:03:12 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-08-18 11:03:12 +0000 |
commit | c710971d56c7e9f804b8703d4d2d3a20fcc2bc16 (patch) | |
tree | cee8967035456374d3a56faf0841e5a0f06befd6 /install.php | |
parent | ae1d9c577baf30ce74c95ea557809b35d77b0806 (diff) | |
download | brdo-c710971d56c7e9f804b8703d4d2d3a20fcc2bc16.tar.gz brdo-c710971d56c7e9f804b8703d4d2d3a20fcc2bc16.tar.bz2 |
- Patch #546390 by cweagans: fix CLI detection in install.php
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |