Merge "[TASK] Move workspace preview functionality into versioning / workspace"
authorBenjamin Mack <benni@typo3.org>
Sun, 17 Jul 2011 10:59:34 +0000 (12:59 +0200)
committerGerrit Code Review <gerrit@review.typo3.org>
Sun, 17 Jul 2011 10:59:34 +0000 (12:59 +0200)
typo3/sysext/version/class.tx_version_tcemain_commandmap.php

index 7d18922..fb43f1a 100644 (file)
@@ -218,7 +218,7 @@ class tx_version_tcemain_CommandMap {
                        foreach ($liveIdCollection as $liveId => $commandCollection) {
                                foreach ($commandCollection as $command => $properties) {
                                        if ($command === 'version' && isset($properties['action']) && $properties['action'] === 'swap') {
-                                               if (isset($properties['swapWith']) && t3lib_div::testInt($properties['swapWith'])) {
+                                               if (isset($properties['swapWith']) && t3lib_utility_Math::canBeInterpretedAsInteger($properties['swapWith'])) {
                                                        call_user_func_array(
                                                                array($this, $callbackMethod),
                                                                array_merge($arguments, array($table, $liveId, $properties))
@@ -325,7 +325,7 @@ class tx_version_tcemain_CommandMap {
                        foreach ($liveIdCollection as $liveIdList => $commandCollection) {
                                foreach ($commandCollection as $command => $properties) {
                                        if ($command === 'version' && isset($properties['action']) && $properties['action'] === 'setStage') {
-                                               if (isset($properties['stageId']) && t3lib_div::testInt($properties['stageId'])) {
+                                               if (isset($properties['stageId']) && t3lib_utility_Math::canBeInterpretedAsInteger($properties['stageId'])) {
                                                        call_user_func_array(
                                                                array($this, $callbackMethod),
                                                                array_merge($arguments, array($table, $liveIdList, $properties))