Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
My refactoring of code in simplenews_scheduler_cron() left the include statement in that function, while moving the call to the function that's loaded up to _simplenews_scheduler_send_new_edition().
Hence calling _simplenews_scheduler_send_new_edition() from elsewhere is not safe.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1485392.simplenews_scheduler.simplenews-mail-include.patch | 1.05 KB | joachim |
Comments
Comment #1
joachim CreditAttribution: joachim commented- #1485392 by joachim: Fixed include statement to be in the function that needs it.
Committed this patch.