[Svn] r2023 - in trunk/roundcubemail: bin installer

trac at roundcube.net trac at roundcube.net
Wed Oct 29 20:12:39 CET 2008


Author: thomasb
Date: 2008-10-29 14:12:39 -0500 (Wed, 29 Oct 2008)
New Revision: 2023

Modified:
   trunk/roundcubemail/bin/update.sh
   trunk/roundcubemail/installer/rcube_install.php
Log:
Let update script handle the replacement of 'multiple_identities' by 'identities_level'

Modified: trunk/roundcubemail/bin/update.sh
===================================================================
--- trunk/roundcubemail/bin/update.sh	2008-10-29 19:11:29 UTC (rev 2022)
+++ trunk/roundcubemail/bin/update.sh	2008-10-29 19:12:39 UTC (rev 2023)
@@ -19,7 +19,7 @@
       echo "(These config options should be present in the current configuration)\n";
 
       foreach ($messages['missing'] as $msg) {
-        echo '- ' . $msg['prop'] . ($msg['name'] ? ': ' . $msg['name'] : '') . "\n";
+        echo "- '" . $msg['prop'] . ($msg['name'] ? "': " . $msg['name'] : "'") . "\n";
         $err++;
       }
       echo "\n";
@@ -31,7 +31,7 @@
       echo "(These config options have been replaced or renamed)\n";
 
       foreach ($messages['replaced'] as $msg) {
-        echo "- " . $msg['prop'] . "\t\t was replaced by " . $msg['replacement'] . "\n";
+        echo "- '" . $msg['prop'] . "' was replaced by '" . $msg['replacement'] . "'\n";
         $err++;
       }
       echo "\n";
@@ -43,7 +43,7 @@
       echo "(You still have some obsolete or inexistent properties set. This isn't a problem but should be noticed)\n";
 
       foreach ($messages['obsolete'] as $msg) {
-        echo "- " . $msg['prop'] . ($msg['name'] ? ': ' . $msg['name'] : '') . "\n";
+        echo "- '" . $msg['prop'] . ($msg['name'] ? "': " . $msg['name'] : "'") . "\n";
         $err++;
       }
       echo "\n";

Modified: trunk/roundcubemail/installer/rcube_install.php
===================================================================
--- trunk/roundcubemail/installer/rcube_install.php	2008-10-29 19:11:29 UTC (rev 2022)
+++ trunk/roundcubemail/installer/rcube_install.php	2008-10-29 19:12:39 UTC (rev 2023)
@@ -33,7 +33,11 @@
   var $bool_config_props = array();
 
   var $obsolete_config = array('db_backend');
-  var $replaced_config = array('skin_path' => 'skin', 'locale_string' => 'language');
+  var $replaced_config = array(
+    'skin_path' => 'skin',
+    'locale_string' => 'language',
+    'multiple_identities' => 'identities_level',
+  );
   
   // these config options are optional or can be set to null
   var $optional_config = array(
@@ -214,7 +218,7 @@
     $out = $seen = array();
     $optional = array_flip($this->optional_config);
     
-    // ireate over the current configuration
+    // iterate over the current configuration
     foreach ($this->config as $prop => $value) {
       if ($replacement = $this->replaced_config[$prop]) {
         $out['replaced'][] = array('prop' => $prop, 'replacement' => $replacement);
@@ -274,6 +278,8 @@
       if (isset($current[$prop])) {
         if ($prop == 'skin_path')
           $this->config[$replacement] = preg_replace('#skins/(\w+)/?$#', '\\1', $current[$prop]);
+        else if ($prop == 'multiple_identities')
+          $this->config[$replacement] = $current[$prop] ? 2 : 0;
         else
           $this->config[$replacement] = $current[$prop];
         

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list