[FEATURE] Add a value slider as wizard to tceforms
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_tstemplate.php
index 2d76f0e..4577470 100644 (file)
@@ -770,7 +770,7 @@ class t3lib_TStemplate {
                        $findConst = explode('{$', $all);
                        array_shift($findConst);
                        foreach ($findConst as $constVal) {
-                               $constLen = t3lib_div::intInRange(strcspn($constVal, '}'), 0, 50);
+                               $constLen = t3lib_utility_Math::forceIntegerInRange(strcspn($constVal, '}'), 0, 50);
                                $theConstList[] = '{$' . substr($constVal, 0, $constLen + 1);
                        }
                        if ($this->tt_track) {
@@ -1259,7 +1259,7 @@ class t3lib_TStemplate {
                $keyArr = array();
                $setupArrKeys = array_keys($setupArr);
                foreach ($setupArrKeys as $key) {
-                       if ($acceptOnlyProperties || t3lib_div::testInt($key)) {
+                       if ($acceptOnlyProperties || t3lib_utility_Math::canBeInterpretedAsInteger($key)) {
                                $keyArr[] = intval($key);
                        }
                }
@@ -1348,7 +1348,7 @@ class t3lib_TStemplate {
 
                        // typeNum
                $typeNum = $this->setup[$LD['target'] . '.']['typeNum'];
-               if (!t3lib_div::testInt($typeOverride) && intval($GLOBALS['TSFE']->config['config']['forceTypeValue'])) {
+               if (!t3lib_utility_Math::canBeInterpretedAsInteger($typeOverride) && intval($GLOBALS['TSFE']->config['config']['forceTypeValue'])) {
                        $typeOverride = intval($GLOBALS['TSFE']->config['config']['forceTypeValue']);
                }
                if (strcmp($typeOverride, '')) {