backdrop-contrib / scheduler

Allows content to be published and unpublished on specified dates. (Note: a simplified version of the publishing functionality is now in Backdrop core.)
GNU General Public License v2.0
0 stars 1 forks source link

Undefined language property #18

Closed pgrayove-mcpl closed 1 year ago

pgrayove-mcpl commented 1 year ago

Notice: Undefined property: stdClass::$language in scheduler_tokens() (line 30 of /app/modules/contrib/scheduler/scheduler.tokens.inc).

Looks like this:function scheduler_tokens($type, $tokens, array $data = array(), array $options = array()) { $language_code = isset($options['language']) ? $options['language']->language : NULL; $replacements = array();

should be set to: function scheduler_tokens($type, $tokens, array $data = array(), array $options = array()) { $language_code = isset($options['language']) ? $options['language']->langcode : NULL; $replacements = array();

This error displays on all pages of an D7 site ported to Backdrop running php 7.4.

laryn commented 1 year ago

Thank you @pgrayove-mcpl !