EE2 Matrix 2 appears to be looking for tag replacement functions using the FieldFrame naming conventions ({something:else} looks for function else() in fieldtype class) instead of the EE2 Fieldtype API naming conventions ({something:else} looks for function replace_else() in fieldtype class).
I could've sworn this was working properly in EE 2.0.2 but maybe I didn't test it properly... at any rate it appears to not be working now. I inserted
else $tag_func = 'replace_' . $tag_func;
to line 1867 of ft.matrix.php which appears to fix the problem.
EE2.1: Matrix 2 looking for tag_func() instead of replace_tag_func() in _parse_tagdata()
-
-
-
-
-
Sorry, my bad. I forgot this is something I had fixed locally, but haven't released yet. I'll get an update out soon for it. Thanks!
-
-
Hi Brandon and Ender
I need that fix too, and I just tried Ender's suggested insertion. I must have done something wrong, though, because whenever I load anything to do with Matrix I get the following error:
Parse error: syntax error, unexpected T_ELSE in /www/eh12243/public_html/system/expressionengine/third_party/matrix/ft.matrix.php on line 1867
Here's hoping we can get that update soon. Thanks :-)
Cheers
Andrew Macpherson
Sydney, Australia -
-
I think Ender might have made other alterations before reaching his solution, so ignore that. Instead, just replace line 1864 of ft.matrix.php with:
$tag_func = (isset($matches[3][0]) AND $matches[3][0]) ? 'replace_'.$matches[3][0] : '';
-
-
Hi Brandon
Thanks heaps. That fixed the issue, although it seems the line I had to replace in my version was 1863.
Cheers
Andrew -
Loading Profile...


Twitter,
Facebook, or email.

EMPLOYEE

