Commit 225de760 authored by Jens Jacobsen's avatar Jens Jacobsen
Browse files

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

parent 48995180
Pipeline #592 passed with stages
in 2 minutes and 31 seconds
......@@ -146,8 +146,8 @@ abstract class Tx_TerFe2_Provider_AbstractProvider implements Tx_TerFe2_Provider
protected function getVersionByRange($version)
{
$version = \TYPO3\CMS\Extbase\Utility\ArrayUtility::trimExplode('-', $version);
$minimum = (!empty($version[0]) ? \TYPO3\CMS\Core\Utility\GeneralUtility::int_from_ver($version[0]) : 0);
$maximum = (!empty($version[1]) ? \TYPO3\CMS\Core\Utility\GeneralUtility::int_from_ver($version[1]) : 0);
$minimum = (!empty($version[0]) ? \TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger($version[0]) : 0);
$maximum = (!empty($version[1]) ? \TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger($version[1]) : 0);
return array($minimum, $maximum);
}
......
......@@ -208,7 +208,7 @@ class Tx_TerFe2_Task_ImportAllExtensionsTask extends tx_scheduler_Task
'title' => $extData['title'],
'description' => $extData['description'],
'author' => $this->createAuthor($extData),
'version_number' => \TYPO3\CMS\Core\Utility\GeneralUtility::int_from_ver($extData['version']),
'version_number' => \TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger($extData['version']),
'version_string' => $extData['version'],
'upload_date' => $extData['lastuploaddate'],
'upload_comment' => $extData['uploadcomment'],
......@@ -402,8 +402,8 @@ class Tx_TerFe2_Task_ImportAllExtensionsTask extends tx_scheduler_Task
protected function getVersionByRange($version)
{
$version = \TYPO3\CMS\Extbase\Utility\ArrayUtility::trimExplode('-', $version);
$minimum = (!empty($version[0]) ? \TYPO3\CMS\Core\Utility\GeneralUtility::int_from_ver($version[0]) : 0);
$maximum = (!empty($version[1]) ? \TYPO3\CMS\Core\Utility\GeneralUtility::int_from_ver($version[1]) : 0);
$minimum = (!empty($version[0]) ? \TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger($version[0]) : 0);
$maximum = (!empty($version[1]) ? \TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger($version[1]) : 0);
return array($minimum, $maximum);
}
......
......@@ -214,7 +214,7 @@ class Tx_TerFe2_Task_ImportExtensionsFromQueueTask extends tx_scheduler_Task
'title' => $extData['title'],
'description' => $extData['description'],
'author' => $this->createAuthor($extData),
'version_number' => \TYPO3\CMS\Core\Utility\GeneralUtility::int_from_ver($extData['version']),
'version_number' => \TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger($extData['version']),
'version_string' => $extData['version'],
'upload_date' => $crdate,
'upload_comment' => $extData['uploadcomment'],
......@@ -406,8 +406,8 @@ class Tx_TerFe2_Task_ImportExtensionsFromQueueTask extends tx_scheduler_Task
protected function getVersionByRange($version)
{
$version = \TYPO3\CMS\Extbase\Utility\ArrayUtility::trimExplode('-', $version);
$minimum = (!empty($version[0]) ? \TYPO3\CMS\Core\Utility\GeneralUtility::int_from_ver($version[0]) : 0);
$maximum = (!empty($version[1]) ? \TYPO3\CMS\Core\Utility\GeneralUtility::int_from_ver($version[1]) : 0);
$minimum = (!empty($version[0]) ? \TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger($version[0]) : 0);
$maximum = (!empty($version[1]) ? \TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger($version[1]) : 0);
return array($minimum, $maximum);
}
......
Supports Markdown
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