summaryrefslogtreecommitdiff
path: root/installer/rcube_install.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-11-25 17:57:39 +0100
committerThomas Bruederli <thomas@roundcube.net>2012-11-25 17:57:39 +0100
commit5926684aab72265d243142010d9dfa8d642efdb9 (patch)
treee15eb289e3367465fa637338b39311892f71754e /installer/rcube_install.php
parent92964a4a6c40539ba100f71c3c5be35930be2867 (diff)
Unify path schema in global constants: paths always end with a /. Keep RCMAIL_CONFIG_DIR for backwards compatibility
Diffstat (limited to 'installer/rcube_install.php')
-rw-r--r--installer/rcube_install.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/installer/rcube_install.php b/installer/rcube_install.php
index b3208f037..dfd63562d 100644
--- a/installer/rcube_install.php
+++ b/installer/rcube_install.php
@@ -109,12 +109,12 @@ class rcube_install
*/
function _load_config($suffix)
{
- if (is_readable($main_inc = RCUBE_CONFIG_DIR . '/main.inc' . $suffix)) {
+ if (is_readable($main_inc = RCUBE_CONFIG_DIR . 'main.inc' . $suffix)) {
include($main_inc);
if (is_array($rcmail_config))
$this->config += $rcmail_config;
}
- if (is_readable($db_inc = RCUBE_CONFIG_DIR . '/db.inc'. $suffix)) {
+ if (is_readable($db_inc = RCUBE_CONFIG_DIR . 'db.inc'. $suffix)) {
include($db_inc);
if (is_array($rcmail_config))
$this->config += $rcmail_config;
@@ -149,7 +149,7 @@ class rcube_install
*/
function create_config($which, $force = false)
{
- $out = @file_get_contents(RCUBE_CONFIG_DIR . "/{$which}.inc.php.dist");
+ $out = @file_get_contents(RCUBE_CONFIG_DIR . $which . '.inc.php.dist');
if (!$out)
return '[Warning: could not read the config template file]';