Add TYPO3 6.2 compatibility
authorKerstin Gerull <kerstin.gerull@form4.de>
Mon, 2 Feb 2015 14:58:06 +0000 (15:58 +0100)
committerSteffen Gebert <steffen.gebert@typo3.org>
Mon, 2 Feb 2015 14:58:06 +0000 (15:58 +0100)
class.tx_stgclearcache.php

index 0b85d3a..030872d 100755 (executable)
@@ -58,7 +58,7 @@ class tx_stgclearcache {
         * @return      void
         */
        function clearCachePostProc (&$params, &$pObj) {
-               if (TYPO3_MODE === 'BE' && $params['cacheCmd'] && t3lib_div::testInt($params['cacheCmd'])) {
+               if (TYPO3_MODE === 'BE' && $params['cacheCmd'] && \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($params['cacheCmd'])) {
 
                        if ($this->queryGeneratorInstance == null) {
                                $this->queryGeneratorInstance = t3lib_div::makeInstance('t3lib_queryGenerator');