We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c997183 + 5fcc2a9 commit c540973Copy full SHA for c540973
controller/main_controller.php
@@ -89,6 +89,13 @@ public function display()
89
// Grab all the rules in the current user's language
90
$entities = $this->rule_operator->get_rules($this->lang->get_used_language());
91
92
+ // If no rules were found, it may be because no rules exist in the current user's
93
+ // language, so let's look for rules in the board's default language as a fallback.
94
+ if (empty($entities) && $this->lang->get_used_language() !== $this->config['default_lang'])
95
+ {
96
+ $entities = $this->rule_operator->get_rules($this->config['default_lang']);
97
+ }
98
+
99
/* @var $entity \phpbb\boardrules\entity\rule */
100
foreach ($entities as $entity)
101
{
0 commit comments