diff --git a/typo3/sysext/core/Classes/Utility/GeneralUtility.php b/typo3/sysext/core/Classes/Utility/GeneralUtility.php index aaea2145446e7e105951e7a76032048e3ccbc250..8488636f170a8b30befadd0911c1ad2a52e2c380 100644 --- a/typo3/sysext/core/Classes/Utility/GeneralUtility.php +++ b/typo3/sysext/core/Classes/Utility/GeneralUtility.php @@ -722,6 +722,18 @@ class GeneralUtility { return implode(',', $list); } + /** + * Returns an integer from a three part version number, eg '4.12.3' -> 4012003 + * + * @param string $verNumberStr Version number on format x.x.x + * @return integer Integer version of version number (where each part can count to 999) + * @deprecated Use VersionNumberUtility::convertVersionNumberToInteger instead, will be removed after 6.2 + */ + static public function int_from_ver($verNumberStr) { + self::logDeprecatedFunction(); + return VersionNumberUtility::convertVersionNumberToInteger($verNumberStr); + } + /** * Returns TRUE if the current TYPO3 version (or compatibility version) is compatible to the input version * Notice that this function compares branches, not versions (4.0.1 would be > 4.0.0 although they use the same compat_version) @@ -4969,4 +4981,4 @@ Connection: close echo $obContent; } } -?> +?> \ No newline at end of file