Skip to content

Commit

Permalink
Merge pull request #8 from jenlampton/7-language
Browse files Browse the repository at this point in the history
Issue #7: Language becomes Langcode in Backdrop.
  • Loading branch information
docwilmot authored Oct 9, 2017
2 parents 75f9d92 + 0199db2 commit 93eace1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flag.tokens.inc
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function flag_token_info() {
function flag_tokens($type, $tokens, array $data = array(), array $options = array()) {
$replacements = array();
$sanitize = !empty($options['sanitize']);
$langcode = isset($options['language']) ? $options['language']->language : NULL;
$langcode = isset($options['language']) ? $options['language']->langcode : NULL;

if ($type == 'flag' && !empty($data['flag'])) {
$flag = $data['flag'];
Expand Down

0 comments on commit 93eace1

Please sign in to comment.