summaryrefslogtreecommitdiff
path: root/app/Controllers/configureController.php
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <aledeg@users.noreply.github.com> 2025-09-09 16:01:04 -0400
committerGravatar GitHub <noreply@github.com> 2025-09-09 22:01:04 +0200
commit6ad625812a77dc1a63b3c88792b588de11ae8f3c (patch)
treef39a1d66f3e643193f9f1a9b343aca3a6b6525ee /app/Controllers/configureController.php
parentde624dc8ce63ec819c61216d9d44f828841c293e (diff)
Add a default language constant (#7933)
This replace the use of `en` through out the code.
Diffstat (limited to 'app/Controllers/configureController.php')
-rw-r--r--app/Controllers/configureController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php
index e69b46323..993982184 100644
--- a/app/Controllers/configureController.php
+++ b/app/Controllers/configureController.php
@@ -45,7 +45,7 @@ class FreshRSS_configure_Controller extends FreshRSS_ActionController {
*/
public function displayAction(): void {
if (Minz_Request::isPost()) {
- $language = Minz_Request::paramString('language') ?: 'en';
+ $language = Minz_Request::paramString('language') ?: Minz_Translate::DEFAULT_LANGUAGE;
if (Minz_Translate::exists($language)) {
FreshRSS_Context::userConf()->language = $language;
}