field_html_trim_truncate() uses [] shorthand for arrays which is not supported prior to PHP 5.4. Otherwise only three strings are affected so could be reverted to old array() syntax for compatibility with legacy versions (unfortunately, I'm still stuck with 5.3 on my host).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | field_html_trim-revert_shorthand_arrays-2696857-3.patch | 986 bytes | kurapov |
| #2 | field_html_trim-revert_shorthand_arrays-2696857-2.patch | 993 bytes | alexverb |
Comments
Comment #2
alexverb commentedYup, the new truncate function was copied straight from CakePHP. I didn't notice the new shorthands. I would like to revert to PHP 5.3 compatible arrays. But I'm finding only two occurances. Could you test this patch before I put this into a new version?
Thx for letting me know about this issue.
Comment #3
kurapov commentedThere's one more, right at the beginning.
Comment #5
alexverb commentedCommitted to field_html_trim 7.x-1.4. Thanks for your help.