Changeset f8c06e9 in github


Ignore:
Timestamp:
Mar 5, 2010 8:29:52 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
1163db9
Parents:
8ee7767
Message:
  • Fix config options checking: check only existance of required options
File:
1 edited

Legend:

Unmodified
Added
Removed
  • installer/rcube_install.php

    r11e670d rf8c06e9  
    4242   
    4343  // these config options are optional or can be set to null 
    44   var $optional_config = array( 
    45     'log_driver', 'syslog_id', 'syslog_facility', 'imap_auth_type', 
    46     'smtp_helo_host', 'smtp_auth_type', 'sendmail_delay', 'double_auth', 
    47     'language', 'mail_header_delimiter', 'create_default_folders', 
    48     'quota_zero_as_unlimited', 'spellcheck_uri', 'spellcheck_languages', 
    49     'http_received_header', 'session_domain', 'mime_magic', 'log_logins', 
    50     'enable_installer', 'skin_include_php', 'imap_root', 'imap_delimiter', 
    51     'virtuser_file', 'virtuser_query', 'dont_override'); 
     44  var $required_config = array('db_dsnw', 'des_key'); 
    5245   
    5346  /** 
     
    231224     
    232225    $out = $seen = array(); 
    233     $optional = array_flip($this->optional_config); 
     226    $required = array_flip($this->required_config); 
    234227     
    235228    // iterate over the current configuration 
     
    247240    // iterate over default config 
    248241    foreach ($defaults as $prop => $value) { 
    249       if (!$seen[$prop] && !isset($this->config[$prop]) && !isset($optional[$prop])) 
     242      if (!isset($seen[$prop]) && !isset($this->config[$prop]) && isset($required[$prop])) 
    250243        $out['missing'][] = array('prop' => $prop); 
    251244    } 
    252      
     245 
    253246    // check config dependencies and contradictions 
    254247    if ($this->config['enable_spellcheck'] && $this->config['spellcheck_engine'] == 'pspell') { 
Note: See TracChangeset for help on using the changeset viewer.