aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/L10N/LanguageIterator.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/L10N/LanguageIterator.php')
-rw-r--r--lib/private/L10N/LanguageIterator.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/L10N/LanguageIterator.php b/lib/private/L10N/LanguageIterator.php
index 0670ac56503..a03ec114ef9 100644
--- a/lib/private/L10N/LanguageIterator.php
+++ b/lib/private/L10N/LanguageIterator.php
@@ -64,6 +64,7 @@ class LanguageIterator implements ILanguageIterator {
}
$this->next();
/** @noinspection PhpMissingBreakStatementInspection */
+ // no break
case 1:
$forcedLang = $this->config->getSystemValue('force_language', false);
if (is_string($forcedLang)
@@ -73,6 +74,7 @@ class LanguageIterator implements ILanguageIterator {
}
$this->next();
/** @noinspection PhpMissingBreakStatementInspection */
+ // no break
case 2:
$userLang = $this->config->getUserValue($this->user->getUID(), 'core', 'lang', null);
if (is_string($userLang)) {
@@ -80,6 +82,7 @@ class LanguageIterator implements ILanguageIterator {
}
$this->next();
/** @noinspection PhpMissingBreakStatementInspection */
+ // no break
case 3:
$userLang = $this->config->getUserValue($this->user->getUID(), 'core', 'lang', null);
if (is_string($userLang)
@@ -88,6 +91,7 @@ class LanguageIterator implements ILanguageIterator {
return $truncated;
}
$this->next();
+ // no break
case 4:
return $this->config->getSystemValue('default_language', 'en');
/** @noinspection PhpMissingBreakStatementInspection */
@@ -97,6 +101,7 @@ class LanguageIterator implements ILanguageIterator {
return $truncated;
}
$this->next();
+ // no break
default:
return 'en';
}