Fix displaying version number for rcX versions

pull/6384/head^2
Aleksander Machniak 5 years ago
parent 57aa69206a
commit 8a726316bb

@ -34,7 +34,7 @@ if (empty($target_dir) || !is_dir(realpath($target_dir)))
// read version from iniset.php // read version from iniset.php
$iniset = @file_get_contents($target_dir . '/program/include/iniset.php'); $iniset = @file_get_contents($target_dir . '/program/include/iniset.php');
if (!preg_match('/define\(.RCMAIL_VERSION.,\s*.([0-9.]+[a-z-]*)/', $iniset, $m)) if (!preg_match('/define\(.RCMAIL_VERSION.,\s*.([0-9.]+[a-z0-9-]*)/', $iniset, $m))
rcube::raise_error("No valid Roundcube installation found at $target_dir", false, true); rcube::raise_error("No valid Roundcube installation found at $target_dir", false, true);
$oldversion = $m[1]; $oldversion = $m[1];

Loading…
Cancel
Save