[BUGFIX] Remove deprecated method call
authorXavier Perseguers <xavier@typo3.org>
Mon, 24 Oct 2011 10:30:45 +0000 (12:30 +0200)
committerXavier Perseguers <xavier@typo3.org>
Mon, 24 Oct 2011 12:39:24 +0000 (14:39 +0200)
Version still calls t3lib_div::testInt() instead of t3lib_utility_Math::canBeInterpretedAsInteger().

Change-Id: I1440e01c23509803c092d03fc1bfe6daa4ad64b6
Fixes: #31218
Reviewed-on: http://review.typo3.org/6217
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/version/ws/index.php

index f9dab04..b3aa26f 100755 (executable)
@@ -193,7 +193,7 @@ class SC_mod_user_ws_index extends t3lib_SCbase {
                                foreach($post['items'] as $item => $v)  {
                                        list($table,$uid) = explode(':',$item,2);
 
-                                       if ($GLOBALS['TCA'][$table] && t3lib_div::testInt($uid))        {
+                                       if ($GLOBALS['TCA'][$table] && t3lib_utility_Math::canBeInterpretedAsInteger($uid)) {
                                                switch($post['_with_selected_do'])      {
                                                        case "stage_-1":
                                                                $cmdArray[$table][$uid]['version']['action'] = 'setStage';