Wrong call of namespaces in Filelist-Search
Because the call of namespaces is wrong, icons and context menu doesnt'works
[BUGFIX] User proper Fluid namespace detection
The Fluid namespaces can be put in short-syntax, and in tags to be
resolved. However, if the template source is very large, then
preg_match_all() stops and returns "0" although the matched values are
within $matches. However, the $matched result is "0".
The regular expression for doing so, is very exhaustive and greedy, and
uses preg_match_all() however, preg_match() does the job as well.
Additionally, the regular expression is changed to be less
greedy (using *?).
An example where this is necessary is the FileList search module where
the additional namespaces are not resolved currently and the core icons
are not shown, because of the memory - exhausting regular expression.
Reviewed-by: Frank Naegler <firstname.lastname@example.org>
Tested-by: Frank Naegler <email@example.com>
Reviewed-by: Susanne Moog <firstname.lastname@example.org>
Tested-by: Susanne Moog <email@example.com>
Reviewed-by: Daniel Goerz <firstname.lastname@example.org>
Tested-by: Daniel Goerz <email@example.com>