Changeset 0c3bde2 in github


Ignore:
Timestamp:
Sep 5, 2008 6:19:01 AM (5 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
8beee1b
Parents:
be5f03b
Message:

#1485313: fixed DB config updating

File:
1 edited

Legend:

Unmodified
Added
Removed
  • installer/rcube_install.php

    rb77d0dd r0c3bde2  
    123123    if (!$out) 
    124124      return '[Warning: could not read the template file]'; 
    125      
     125 
    126126    foreach ($this->config as $prop => $default) { 
    127127      $value = (isset($_POST["_$prop"]) || $this->config_props[$prop]) ? $_POST["_$prop"] : $default; 
     
    135135        $value = $val; 
    136136      } 
    137       else if ($prop == 'db_dsnw' && !empty($_POST['_dbtype'])) { 
     137      else if ($which == 'db' && $prop == 'db_dsnw' && !empty($_POST['_dbtype'])) { 
    138138        if ($_POST['_dbtype'] == 'sqlite') 
    139139          $value = sprintf('%s://%s?mode=0646', $_POST['_dbtype'], $_POST['_dbname']{0} == '/' ? '/' . $_POST['_dbname'] : $_POST['_dbname']); 
     
    180180        $out); 
    181181    } 
    182      
     182 
    183183    return trim($out); 
    184184  } 
Note: See TracChangeset for help on using the changeset viewer.