I discovered a line of code in simplenews_template.inc that only works in PHP5. It was line 79 where it gets the newsletter name from taxonomy. It tries to use an object operator directly on the return value of the taxonomy_get_term function which only works in PHP5 (taxonomy_get_term($tid)->name). The solution for PHP 4 is to break it into a couple of lines, first putting the object returned by the taxonomy_get_term object into a variable then calling the object's "name" property on that variable. The attached patch file contains this fix.

CommentFileSizeAuthor
simplenews_template_php4_fix.diff797 bytesteknocat
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

teknocat’s picture

leeomara’s picture

Status: Active » Needs review