aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-10-20 08:08:09 +0000
committerMario <mario@mariovavti.com>2021-10-20 08:08:09 +0000
commit4bdbdab399a5e6667b65371236c3a28630ef3839 (patch)
treeb99da30f21d174e0e25ff49e9670de544be92d8a
parentc7515b868793c6495a37c221ffd03aadce30cfd3 (diff)
parentc66a5ba7321bf39e9fedaf48260f09a2aaa7d855 (diff)
downloadvolse-hubzilla-4bdbdab399a5e6667b65371236c3a28630ef3839.tar.gz
volse-hubzilla-4bdbdab399a5e6667b65371236c3a28630ef3839.tar.bz2
volse-hubzilla-4bdbdab399a5e6667b65371236c3a28630ef3839.zip
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
-rw-r--r--Zotlabs/Module/Invite.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/Zotlabs/Module/Invite.php b/Zotlabs/Module/Invite.php
index 76341d789..c301aaea2 100644
--- a/Zotlabs/Module/Invite.php
+++ b/Zotlabs/Module/Invite.php
@@ -422,8 +422,6 @@ class Invite extends Controller {
// let take one descriptive for template (as said is never used)
$invite_code = 'INVITATE2020';
- // what languages we use now
- $lccmy = ((isset(App::$config['system']['language'])) ? App::$config['system']['language'] : 'en');
// and all the localized templates belonging to invite
$tpls = glob('view/*/invite.*.tpl');
@@ -444,6 +442,9 @@ class Invite extends Controller {
$langs = array_keys($tpla);
asort($langs);
+ // Use the current language if we have a template for it. Otherwise fall back to 'en'.
+ $lccmy = ((in_array(App::$language, $langs)) ? App::$language : 'en');
+
$tplx = array_unique($tplx);
asort($tplx);