[Svn] r3330 - trunk/roundcubemail/installer

trac at roundcube.net trac at roundcube.net
Fri Mar 5 14:11:35 CET 2010


Author: alec
Date: 2010-03-05 07:11:35 -0600 (Fri, 05 Mar 2010)
New Revision: 3330

Modified:
   trunk/roundcubemail/installer/test.php
Log:
- Fix directories checking when temp_dir/log_dir aren't set


Modified: trunk/roundcubemail/installer/test.php
===================================================================
--- trunk/roundcubemail/installer/test.php	2010-03-05 12:57:58 UTC (rev 3329)
+++ trunk/roundcubemail/installer/test.php	2010-03-05 13:11:35 UTC (rev 3330)
@@ -94,12 +94,12 @@
 if ($RCI->configured) {
     $pass = false;
 
-    $dirs[] = $RCI->config['temp_dir'];
+    $dirs[] = $RCI->config['temp_dir'] ? $RCI->config['temp_dir'] : 'temp';
     if($RCI->config['log_driver'] != 'syslog')
-      $dirs[] = $RCI->config['log_dir'];
+      $dirs[] = $RCI->config['log_dir'] ? $RCI->config['log_dir'] : 'logs';
 
     foreach ($dirs as $dir) {
-        $dirpath = $dir{0} == '/' ? $dir : INSTALL_PATH . $dir;
+        $dirpath = $dir[0] == '/' ? $dir : INSTALL_PATH . $dir;
         if (is_writable(realpath($dirpath))) {
             $RCI->pass($dir);
             $pass = true;

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



More information about the Svn mailing list