From 7b4502ac6b7932e4e21939812e94816900dc10d4 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 19 Jan 2009 08:51:26 +0000 Subject: setup_varpath() -> setup_var() --- installer/installer.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'installer/installer.php') diff --git a/installer/installer.php b/installer/installer.php index d909c14c..c5a90f6f 100644 --- a/installer/installer.php +++ b/installer/installer.php @@ -24,11 +24,16 @@ class installer { 'throw new ErrorException($errstr, 0, $errno, $errfile, $errline);')); set_exception_handler(array("installer", "print_exception")); + if (self::already_installed()) { + print "Gallery 3 is already installed.\n"; + return; + } + $config = self::parse_cli_params(); try { self::environment_check(); self::setup_database($config); - self::setup_varpath(); + self::setup_var(); self::install($config); list ($user, $password) = self::create_admin($config); print "Successfully installed your Gallery 3!\n"; @@ -148,7 +153,7 @@ class installer { } } - static function setup_varpath() { + static function setup_var() { $errors = array(); if (is_writable(VARPATH)) { return; -- cgit v1.2.3