[TASK] Disable compression for inlineJs in Backend
[Packages/TYPO3.CMS.git] / t3lib / matchcondition / class.t3lib_matchcondition_abstract.php
index 13b93f4..a9de498 100644 (file)
@@ -340,7 +340,7 @@ abstract class t3lib_matchCondition_abstract {
                                        // comp
                                $values = t3lib_div::trimExplode(',', $value, TRUE);
                                foreach ($values as $test) {
-                                       if (t3lib_div::testInt($test)) {
+                                       if (t3lib_utility_Math::canBeInterpretedAsInteger($test)) {
                                                $test = '=' . $test;
                                        }
                                        if ($this->compareNumber($test, $theTestValue)) {
@@ -404,11 +404,9 @@ abstract class t3lib_matchCondition_abstract {
                                $values = preg_split('/\(|\)/', $value);
                                $funcName = trim($values[0]);
                                $funcValue = t3lib_div::trimExplode(',', $values[1]);
-                               $prefix = $this->getUserFuncClassPrefix();
-                               if ($prefix &&
-                                       !t3lib_div::hasValidClassPrefix($funcName, array($prefix))
+                               if (!t3lib_div::hasValidClassPrefix($funcName)
                                ) {
-                                       $this->log('Match condition: Function "' . $funcName . '" was not prepended with "' . $prefix . '"');
+                                       $this->log('Match condition: Function "' . $funcName . '" was not prepended with one of "' . implode(', ', t3lib_div::getValidClassPrefixes()) . '"');
                                        return FALSE;
                                }
                                if (function_exists($funcName) && call_user_func($funcName, $funcValue[0])) {
@@ -635,13 +633,6 @@ abstract class t3lib_matchCondition_abstract {
        abstract protected function determineRootline();
 
        /**
-        * Gets prefix for user functions (normally 'user_').
-        *
-        * @return      string          The prefix for user functions (normally 'user_').
-        */
-       abstract protected function getUserFuncClassPrefix();
-
-       /**
         * Gets the id of the current user.
         *
         * @return      integer         The id of the current user