[BUGFIX] Allow Tx_ as class prefix
[Packages/TYPO3.CMS.git] / t3lib / matchcondition / class.t3lib_matchcondition_abstract.php
index 27fd2a8..13b93f4 100644 (file)
@@ -406,8 +406,7 @@ abstract class t3lib_matchCondition_abstract {
                                $funcValue = t3lib_div::trimExplode(',', $values[1]);
                                $prefix = $this->getUserFuncClassPrefix();
                                if ($prefix &&
-                                       !t3lib_div::isFirstPartOfStr(trim($funcName), $prefix) &&
-                                       !t3lib_div::isFirstPartOfStr(trim($funcName), 'tx_')
+                                       !t3lib_div::hasValidClassPrefix($funcName, array($prefix))
                                ) {
                                        $this->log('Match condition: Function "' . $funcName . '" was not prepended with "' . $prefix . '"');
                                        return FALSE;
@@ -665,4 +664,4 @@ abstract class t3lib_matchCondition_abstract {
        abstract protected function log($message);
 }
 
-?>
\ No newline at end of file
+?>