From 8c8bdf70251daefbb1084e49254593362494e3c6 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sun, 11 Jan 2009 07:30:26 +0000 Subject: allow modules to be installed to be specified as command line option or in the response file --- installer/helpers/installer.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'installer/helpers') diff --git a/installer/helpers/installer.php b/installer/helpers/installer.php index f4ce5057..3fd8b19f 100644 --- a/installer/helpers/installer.php +++ b/installer/helpers/installer.php @@ -189,6 +189,9 @@ class installer { case "-f": $arguments["file"] = $argv[++$i]; break; + case "-i": + $arguments["type"] = $argv[++i]; + break; case "-m": $arguments["modules"] = $argv[++$i]; break; @@ -196,7 +199,7 @@ class installer { } $config = array("host" => "localhost", "user" => "root", "password" => "", - "modules" => array("core" => 1, "user" => 1), + "modules" => array("core" => 1, "user" => 1), "type" => "mysqli", "dbname" => "gallery3", "prefix" => ""); if (!empty($arguments["file"])) { @@ -234,7 +237,12 @@ class installer { self::$messages[] = $section; } - + + public static function get_database() { + $db_config = array(); + return + } + private static function _render($view) { if ($view == '') return; -- cgit v1.2.3