diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-19 08:18:12 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-19 08:18:12 +0000 |
commit | 7f9a76b4b2f262e8b351f4f9351832c081525304 (patch) | |
tree | 2eea84cc036e857096fb6a47766f26d47774eafe | |
parent | ff19e4cfe81a832ddd39cc868d3a5d23e7831eba (diff) |
Only run the installer from the CLI for now
-rw-r--r-- | installer/index.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/installer/index.php b/installer/index.php index e76a1f98..07565acc 100644 --- a/installer/index.php +++ b/installer/index.php @@ -31,4 +31,6 @@ define("VARPATH", DOCROOT . "var/"); define("SYSPATH", "DEFINED_TO_SOMETHING_SO_THAT_WE_CAN_KEEP_CONSISTENT_PREAMBLES_IN_THE_INSTALLER"); require(DOCROOT . "installer/installer.php"); -installer::command_line(); +if (php_sapi_name() == "cli") { + installer::command_line(); +} |