diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-29 16:28:14 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-29 16:28:14 +0000 |
| commit | 2e1bb3d2f9896229eb538666a37df11cc318b9ad (patch) | |
| tree | 5712eafc3b2bbd96baf9cae81476957bbaa91666 | |
| parent | 372da67e7c5a0515d01382d71eeab04a69719796 (diff) | |
Fix pspell check and (yet not used MDB2 schema intialization)
git-svn-id: https://svn.roundcube.net/trunk@3442 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/installer/rcube_install.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/roundcubemail/installer/rcube_install.php b/roundcubemail/installer/rcube_install.php index b5724cabd..b0d59fd29 100644 --- a/roundcubemail/installer/rcube_install.php +++ b/roundcubemail/installer/rcube_install.php @@ -249,9 +249,9 @@ class rcube_install $out['dependencies'][] = array('prop' => 'spellcheck_engine', 'explain' => 'This requires the <tt>pspell</tt> extension which could not be loaded.'); } - if (!empty($this->config['spellcheck_languages'])) { + else if (!empty($this->config['spellcheck_languages'])) { foreach ($this->config['spellcheck_languages'] as $lang => $descr) - if (!pspell_new($lang)) + if (!pspell_new($lang)) $out['dependencies'][] = array('prop' => 'spellcheck_languages', 'explain' => "You are missing pspell support for language $lang ($descr)"); } @@ -348,7 +348,8 @@ class rcube_install 'portability' => true ); - $schema =& MDB2_Schema::factory($this->config['db_dsnw'], $options); + $dsnw = $this->config['db_dsnw']; + $schema = MDB2_Schema::factory($dsnw, $options); $schema->db->supported['transactions'] = false; if (PEAR::isError($schema)) { @@ -365,10 +366,11 @@ class rcube_install } // load reference schema - $dsn = MDB2::parseDSN($this->config['db_dsnw']); - $ref_schema = INSTALL_PATH . 'SQL/' . $dsn['phptype'] . '.schema.xml'; + $dsn_arr = MDB2::parseDSN($this->config['db_dsnw']); + + $ref_schema = INSTALL_PATH . 'SQL/' . $dsn_arr['phptype'] . '.schema.xml'; - if (is_file($ref_schema)) { + if (is_readable($ref_schema)) { $reference = $schema->parseDatabaseDefinition($ref_schema, false, array(), $schema->options['fail_on_invalid_names']); if (PEAR::isError($reference)) { |
