diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2013-04-16 08:44:36 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2013-04-16 08:44:36 +0000 |
commit | 572709d3a4d5f8f0b69b6636dc27f072330d15c5 (patch) | |
tree | cb468c61dc376924bb55e1bdf126a03d9da61b35 /main/roundcubemail/fix-dirs.patch | |
parent | b7bd895108436911428cbeb7c0e0148a6f285241 (diff) | |
download | aports-572709d3a4d5f8f0b69b6636dc27f072330d15c5.tar.bz2 aports-572709d3a4d5f8f0b69b6636dc27f072330d15c5.tar.xz |
main/roundcubemail: upgrade to 0.9.0
Diffstat (limited to 'main/roundcubemail/fix-dirs.patch')
-rw-r--r-- | main/roundcubemail/fix-dirs.patch | 44 |
1 files changed, 7 insertions, 37 deletions
diff --git a/main/roundcubemail/fix-dirs.patch b/main/roundcubemail/fix-dirs.patch index 0500c591bf..e4a537700d 100644 --- a/main/roundcubemail/fix-dirs.patch +++ b/main/roundcubemail/fix-dirs.patch @@ -1,21 +1,17 @@ -diff --git a/installer/index.php b/installer/index.php -index 7ed5224..f9f8241 100644 --- a/installer/index.php +++ b/installer/index.php -@@ -43,7 +43,7 @@ - ini_set('display_errors', 1); +@@ -41,7 +41,7 @@ define('INSTALL_PATH', realpath(dirname(__FILE__) . '/../').'/'); --define('RCMAIL_CONFIG_DIR', INSTALL_PATH . 'config'); -+define('RCMAIL_CONFIG_DIR', '/etc/roundcube'); - define('RCMAIL_CHARSET', 'UTF-8'); + define('RCUBE_INSTALL_PATH', INSTALL_PATH); +-define('RCUBE_CONFIG_DIR', INSTALL_PATH . 'config/'); ++define('RCUBE_CONFIG_DIR', '/etc/roundcube'); $include_path = INSTALL_PATH . 'program/lib' . PATH_SEPARATOR; -diff --git a/program/include/iniset.php b/program/include/iniset.php -index 10ae11e..f9d3d92 100755 + $include_path .= INSTALL_PATH . 'program/include' . PATH_SEPARATOR; --- a/program/include/iniset.php +++ b/program/include/iniset.php -@@ -47,7 +47,7 @@ if (!defined('INSTALL_PATH')) { +@@ -44,7 +44,7 @@ } if (!defined('RCMAIL_CONFIG_DIR')) { @@ -23,30 +19,4 @@ index 10ae11e..f9d3d92 100755 + define('RCMAIL_CONFIG_DIR', '/etc/roundcube'); } - // make sure path_separator is defined -diff --git a/program/include/main.inc b/program/include/main.inc -index 30d9099..8400395 100644 ---- a/program/include/main.inc -+++ b/program/include/main.inc -@@ -2101,7 +2101,7 @@ function write_log($name, $line) - - // log_driver == 'file' is assumed here - if (empty($CONFIG['log_dir'])) -- $CONFIG['log_dir'] = INSTALL_PATH.'logs'; -+ $CONFIG['log_dir'] = '/var/log/roundcube'; - - // try to open specific log file for writing - $logfile = $CONFIG['log_dir'].'/'.$name; -diff --git a/program/include/rcube_config.php b/program/include/rcube_config.php -index 7d46df0..d9990c4 100644 ---- a/program/include/rcube_config.php -+++ b/program/include/rcube_config.php -@@ -66,7 +66,7 @@ class rcube_config - - // fix paths - $this->prop['log_dir'] = $this->prop['log_dir'] ? realpath(unslashify($this->prop['log_dir'])) : INSTALL_PATH . 'logs'; -- $this->prop['temp_dir'] = $this->prop['temp_dir'] ? realpath(unslashify($this->prop['temp_dir'])) : INSTALL_PATH . 'temp'; -+ $this->prop['temp_dir'] = $this->prop['temp_dir'] ? realpath(unslashify($this->prop['temp_dir'])) : '/tmp'; - - // fix default imap folders encoding - foreach (array('drafts_mbox', 'junk_mbox', 'sent_mbox', 'trash_mbox') as $folder) + if (!defined('RCUBE_LOCALIZATION_DIR')) { |