diff options
Diffstat (limited to 'plugins/Installation/FormDatabaseSetup.php')
-rw-r--r-- | plugins/Installation/FormDatabaseSetup.php | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/plugins/Installation/FormDatabaseSetup.php b/plugins/Installation/FormDatabaseSetup.php index 807cffd723..2669cbcc5f 100644 --- a/plugins/Installation/FormDatabaseSetup.php +++ b/plugins/Installation/FormDatabaseSetup.php @@ -16,26 +16,22 @@ */ class Piwik_Installation_FormDatabaseSetup extends Piwik_Form { - function __construct() - { - parent::__construct($action = '', $attributes = 'autocomplete="off"'); - } function init() { - $availableAdapters = Piwik_Db_Adapter::getAdapters(); + $infos = Piwik_Installation_Controller::getSystemInformation(); $adapters = array(); - foreach($availableAdapters as $adapter => $port) + foreach($infos['adapters'] as $adapter => $port) { $adapters[$adapter] = $adapter; } $formElements = array( - array('text', 'host', Piwik_Translate('Installation_DatabaseSetupServer'), 'value='.'localhost'), - array('text', 'username', Piwik_Translate('Installation_DatabaseSetupLogin')), - array('password', 'password', Piwik_Translate('Installation_DatabaseSetupPassword')), - array('text', 'dbname', Piwik_Translate('Installation_DatabaseSetupDatabaseName')), - array('text', 'tables_prefix', Piwik_Translate('Installation_DatabaseSetupTablePrefix'), 'value='.'piwik_'), - array('select', 'adapter', Piwik_Translate('Installation_DatabaseSetupAdapter'), $adapters), + array('text', 'host', 'mysql server', 'value='.'localhost'), + array('text', 'username', 'login'), + array('password', 'password', 'password'), + array('text', 'dbname', 'database name'), + array('text', 'tables_prefix', 'table prefix', 'value='.'piwik_'), + array('select', 'adapter', 'adapter', $adapters), ); $this->addElements( $formElements ); |