[BUGFIX] Replaced call to deprecated t3lib_div::testInt()
authorBastian Waidelich <bastian@typo3.org>
Wed, 14 Sep 2011 11:28:25 +0000 (13:28 +0200)
committerBastian Waidelich <bastian@typo3.org>
Wed, 14 Sep 2011 11:28:25 +0000 (13:28 +0200)
Instead the replacing t3lib_utility_Math::canBeInterpretedAsInteger() is used
now in Typo3DbBackend.

Change-Id: Ib08f63e6082d7aea9bc31230b9c3dd248dd2f8c8

typo3/sysext/extbase/Classes/Persistence/Storage/Typo3DbBackend.php

index af69e2f..3610b2d 100644 (file)
@@ -1053,7 +1053,7 @@ class Tx_Extbase_Persistence_Storage_Typo3DbBackend implements Tx_Extbase_Persis
                        $clearCacheCommands = t3lib_div::trimExplode(',',strtolower($this->pageTSConfigCache[$storagePage]['TCEMAIN.']['clearCacheCmd']),1);
                        $clearCacheCommands = array_unique($clearCacheCommands);
                        foreach ($clearCacheCommands as $clearCacheCommand)     {
-                               if (t3lib_div::testInt($clearCacheCommand))     {
+                               if (t3lib_utility_Math::canBeInterpretedAsInteger($clearCacheCommand))  {
                                        $pageIdsToClear[] = $clearCacheCommand;
                                }
                        }