Skip to content

Conversation

@iMattPro
Copy link
Contributor

Fixes #314

when no rules are found in the user’s current lang.
@iMattPro iMattPro requested a review from rxu April 17, 2017 15:24

// If no rules were found, it may be because no rules exist in the current user's
// language, so let's look for rules in the board's default language as a fallback.
if (empty($entities))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

&& $this->lang->get_used_language() != $this->config['default_lang']? 😛

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good. I was worried a little about running it an extra time if not needed

@iMattPro iMattPro merged commit c540973 into phpbb-extensions:master Apr 18, 2017
@iMattPro iMattPro deleted the issue/314 branch April 18, 2017 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants