[TYPO3-core] [TYPO3-dev] Condition userFunc takes only one parameter, any reason for that?
Matthias Stübner
cimst at web.de
Sun Sep 20 23:05:09 CEST 2009
Hi ladies & gents,
as I need a condition that does some calculations with pageIDs I use a
userFunc which gets IDs as parameter, i.e:
[userFunc = user_match(66,28,98)]
what didn't lead to the expected result. Further investigations showed that
userFunc calls the func as follows in class.t3lib_matchcondition.php in
function evalConditionStr($string):
if (function_exists($funcName) && call_user_func($funcName, $funcValue[0]))
{
return true;
}
$funcValue is an array and holds all parameters, in the sampel above
66,28,98, but only $funcValue[0] is handed over, what prevents from
using more than one parameter.
Can someone see any reason why?
Also there was a patch regarding that in September 2006, which didn't make
it into the core?
br Matthias
--
typo3-consultant.de
More information about the TYPO3-team-core
mailing list