simplenews_nodeapi uses $user, but there's a missing global $user.
patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | simplenews.356784.patch | 1.83 KB | sutharsan |
| #1 | get_rid_of_notices.patch | 1.88 KB | Anonymous (not verified) |
| missing_user.patch | 711 bytes | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) commentedpatch now fixes a few spots that need to check if variables exist, and passes the language object to
user_mail_tokens, not just the language string.Comment #2
sutharsan commentedI reworked the patch a bit making simplenews_mail_tokens() capable of retrieving $name from both newsletter and node objects.
Please test.
Comment #3
Anonymous (not verified) commentedtested the patch, works for me, RTBC.
Comment #4
sutharsan commentedThanks for the code. Patch committed.