Changeset 2023 in subversion


Ignore:
Timestamp:
Oct 29, 2008 3:12:39 PM (5 years ago)
Author:
thomasb
Message:

Let update script handle the replacement of 'multiple_identities' by 'identities_level'

Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/bin/update.sh

    r2020 r2023  
    2020 
    2121      foreach ($messages['missing'] as $msg) { 
    22         echo '- ' . $msg['prop'] . ($msg['name'] ? ': ' . $msg['name'] : '') . "\n"; 
     22        echo "- '" . $msg['prop'] . ($msg['name'] ? "': " . $msg['name'] : "'") . "\n"; 
    2323        $err++; 
    2424      } 
     
    3232 
    3333      foreach ($messages['replaced'] as $msg) { 
    34         echo "- " . $msg['prop'] . "\t\t was replaced by " . $msg['replacement'] . "\n"; 
     34        echo "- '" . $msg['prop'] . "' was replaced by '" . $msg['replacement'] . "'\n"; 
    3535        $err++; 
    3636      } 
     
    4444 
    4545      foreach ($messages['obsolete'] as $msg) { 
    46         echo "- " . $msg['prop'] . ($msg['name'] ? ': ' . $msg['name'] : '') . "\n"; 
     46        echo "- '" . $msg['prop'] . ($msg['name'] ? "': " . $msg['name'] : "'") . "\n"; 
    4747        $err++; 
    4848      } 
  • trunk/roundcubemail/installer/rcube_install.php

    r2020 r2023  
    3434 
    3535  var $obsolete_config = array('db_backend'); 
    36   var $replaced_config = array('skin_path' => 'skin', 'locale_string' => 'language'); 
     36  var $replaced_config = array( 
     37    'skin_path' => 'skin', 
     38    'locale_string' => 'language', 
     39    'multiple_identities' => 'identities_level', 
     40  ); 
    3741   
    3842  // these config options are optional or can be set to null 
     
    215219    $optional = array_flip($this->optional_config); 
    216220     
    217     // ireate over the current configuration 
     221    // iterate over the current configuration 
    218222    foreach ($this->config as $prop => $value) { 
    219223      if ($replacement = $this->replaced_config[$prop]) { 
     
    275279        if ($prop == 'skin_path') 
    276280          $this->config[$replacement] = preg_replace('#skins/(\w+)/?$#', '\\1', $current[$prop]); 
     281        else if ($prop == 'multiple_identities') 
     282          $this->config[$replacement] = $current[$prop] ? 2 : 0; 
    277283        else 
    278284          $this->config[$replacement] = $current[$prop]; 
Note: See TracChangeset for help on using the changeset viewer.