Commit ddfb9aa5 authored by Jens Jacobsen's avatar Jens Jacobsen
Browse files

[TASK] Update usage of GeneralUtility:int_from_ver with new method

parent 48995180
Pipeline #594 passed with stages
in 3 minutes and 17 seconds
......@@ -468,7 +468,7 @@ function versionConv($input, $rev = false)
$result = intval(substr($int, 0, -6)) . '.' . intval(substr($int, -6, -3)) . '.' . intval(substr($int, -3)) . $suffix;
}
} else { // From string to double
$result = \TYPO3\CMS\Core\Utility\GeneralUtility::int_from_ver($input);
$result = \TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger($input);
if (preg_match('/(dev|a|b|rc)([0-9]*)$/', strtolower($input), $reg)) {
$dec = intval($subDecIndex[$reg[1]]) . $reg[2];
$result = (double)(($result - 1) . '.' . $dec);
......@@ -586,4 +586,4 @@ function xmlentities($string)
return str_replace(['&', '"', "'", '<', '>'], ['&amp;', '&quot;', '&apos;', '&lt;', '&gt;'], $string);
}
?>
\ No newline at end of file
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment