[TASK] Refactor core usages of testInt, calcPriority, calcParenthesis
authorOliver Hader <oliver@typo3.org>
Tue, 12 Jul 2011 15:38:08 +0000 (17:38 +0200)
committerOliver Hader <oliver@typo3.org>
Tue, 12 Jul 2011 15:38:08 +0000 (17:38 +0200)
As testInt, calcPriority and calcParenthesis were moved and renamed to
t3lib_utility_Math we have to change the core usages, too.

Change-Id: Idf8cc04c4851a3d53eaa3a14c32a4a2416ec0b7f
Resolves: #28097

typo3/sysext/workspaces/Classes/Service/Stages.php

index 4aeb25a..f334669 100644 (file)
@@ -701,7 +701,7 @@ class Tx_Workspaces_Service_Stages {
         * @return integer
         */
        public function getNotificationMode($stageId) {
-               if (!t3lib_div::testInt($stageId)) {
+               if (!t3lib_utility_Math::canBeInterpretedAsInteger($stageId)) {
                        throw new InvalidArgumentException($GLOBALS['LANG']->sL('LLL:EXT:workspaces/Resources/Private/Language/locallang.xml:error.stageId.integer'));
                }