From 253f0aed1699c84cbdb684ef53e6c9c56c077d6f Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 26 Jun 2013 09:05:47 +0200 Subject: Remove deprecated (in PHP 5.5) PREG /e modifier usage (#1489174) --- installer/rcube_install.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'installer') diff --git a/installer/rcube_install.php b/installer/rcube_install.php index 473fd2612..637808e8a 100644 --- a/installer/rcube_install.php +++ b/installer/rcube_install.php @@ -217,10 +217,12 @@ class rcube_install // 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); } -- cgit v1.2.3