Project

General

Profile

Bug #22594 » BUGFIX-14313.patch

Administrator Admin, 2011-01-18 18:01

View differences:

t3lib/class.t3lib_div.php
// Check prefix is valid:
if ($checkPrefix &&
!self::isFirstPartOfStr(trim($funcRef), $checkPrefix) &&
!self::isFirstPartOfStr(trim($funcRef), 'tx_')
!self::isFirstPartOfStr(strtolower(trim($funcRef)), 'tx_')
) {
$errorMsg = "Function/class '$funcRef' was not prepended with '$checkPrefix'";
if ($errorMode == 2) {
(2-2/2)