Changeset 3442 in subversion


Ignore:
Timestamp:
Mar 29, 2010 12:28:14 PM (3 years ago)
Author:
thomasb
Message:

Fix pspell check and (yet not used MDB2 schema intialization)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/installer/rcube_install.php

    r3331 r3442  
    250250          'explain' => 'This requires the <tt>pspell</tt> extension which could not be loaded.'); 
    251251      } 
    252       if (!empty($this->config['spellcheck_languages'])) { 
     252      else if (!empty($this->config['spellcheck_languages'])) { 
    253253        foreach ($this->config['spellcheck_languages'] as $lang => $descr) 
    254           if (!pspell_new($lang)) 
     254          if (!pspell_new($lang)) 
    255255            $out['dependencies'][] = array('prop' => 'spellcheck_languages', 
    256256              'explain' => "You are missing pspell support for language $lang ($descr)"); 
     
    349349    ); 
    350350     
    351     $schema =& MDB2_Schema::factory($this->config['db_dsnw'], $options); 
     351    $dsnw = $this->config['db_dsnw']; 
     352    $schema = MDB2_Schema::factory($dsnw, $options); 
    352353    $schema->db->supported['transactions'] = false; 
    353354     
     
    366367       
    367368      // load reference schema 
    368       $dsn = MDB2::parseDSN($this->config['db_dsnw']); 
    369       $ref_schema = INSTALL_PATH . 'SQL/' . $dsn['phptype'] . '.schema.xml'; 
     369      $dsn_arr = MDB2::parseDSN($this->config['db_dsnw']); 
     370 
     371      $ref_schema = INSTALL_PATH . 'SQL/' . $dsn_arr['phptype'] . '.schema.xml'; 
    370372       
    371       if (is_file($ref_schema)) { 
     373      if (is_readable($ref_schema)) { 
    372374        $reference = $schema->parseDatabaseDefinition($ref_schema, false, array(), $schema->options['fail_on_invalid_names']); 
    373375         
Note: See TracChangeset for help on using the changeset viewer.