From fc52af24f1418d6590a2d37a0d8cc31b123e38f6 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli <thomas@roundcube.net> Date: Tue, 19 Aug 2014 12:08:35 -0400 Subject: [PATCH] Fix merge error that disabled contact drag'n'drop --- installer/rcube_install.php | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/installer/rcube_install.php b/installer/rcube_install.php index ce9ddfc..fa99dff 100644 --- a/installer/rcube_install.php +++ b/installer/rcube_install.php @@ -217,10 +217,12 @@ // save change $this->config[$prop] = $value; + $dump = self::_dump_var($value, $prop); + // replace the matching line in config file $out = preg_replace( - '/(\$rcmail_config\[\''.preg_quote($prop).'\'\])\s+=\s+(.+);/Uie', - "'\\1 = ' . rcube_install::_dump_var(\$value, \$prop) . ';'", + '/(\$rcmail_config\[\''.preg_quote($prop).'\'\])\s+=\s+(.+);/Ui', + "\\1 = $dump;", $out); } @@ -357,7 +359,7 @@ * required for this version of Roundcube * * @param boolean True if the schema schould be updated - * @return boolean True if the schema is up-to-date, false if not or an error occured + * @return boolean True if the schema is up-to-date, false if not or an error occurred */ function db_schema_check($DB, $update = false) { @@ -495,10 +497,13 @@ * @param string Test name * @param string Error message * @param string URL for details + * @param bool Do not count this failure */ - function fail($name, $message = '', $url = '') + function fail($name, $message = '', $url = '', $optional=false) { - $this->failures++; + if (!$optional) { + $this->failures++; + } echo Q($name) . ': <span class="fail">NOT OK</span>'; $this->_showhint($message, $url); -- Gitblit v1.9.1