Remove deprecated (in PHP 5.5) PREG /e modifier usage (#1489174)

pull/73/merge
Aleksander Machniak 12 years ago
parent 3aa16c320b
commit 253f0aed16

@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail CHANGELOG Roundcube Webmail
=========================== ===========================
- Remove deprecated (in PHP 5.5) PREG /e modifier usage (#1489174)
- Fix empty messages list when register_globals is enabled (#1489157) - Fix empty messages list when register_globals is enabled (#1489157)
- Improved/unified attachment preview screen, added print button - Improved/unified attachment preview screen, added print button
- Fix lack of space between searchfiler and quicksearchbar in Larry skin (#1489158) - Fix lack of space between searchfiler and quicksearchbar in Larry skin (#1489158)

@ -217,10 +217,12 @@ class rcube_install
// save change // save change
$this->config[$prop] = $value; $this->config[$prop] = $value;
$dump = self::_dump_var($value, $prop);
// replace the matching line in config file // replace the matching line in config file
$out = preg_replace( $out = preg_replace(
'/(\$rcmail_config\[\''.preg_quote($prop).'\'\])\s+=\s+(.+);/Uie', '/(\$rcmail_config\[\''.preg_quote($prop).'\'\])\s+=\s+(.+);/Ui',
"'\\1 = ' . rcube_install::_dump_var(\$value, \$prop) . ';'", "\\1 = $dump;",
$out); $out);
} }

Loading…
Cancel
Save