openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 292ddecaf62277a63d1082363d2e9e57867be86b
parent ba080596be42e2df60d6555f55405b3738c95fcd
Author: Jan Dankert <devnull@localhost>
Date:   Wed, 29 Aug 2018 22:42:25 +0200

Konstante PRODUCTION kann erst gesetzt werden, wenn die Konfiguration gelesen wurde.

Diffstat:
modules/cms-core/Dispatcher.class.php | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/cms-core/Dispatcher.class.php b/modules/cms-core/Dispatcher.class.php @@ -235,7 +235,8 @@ class Dispatcher if (!in_array($l, $available)) continue; // language is not configured as available. - $lang = Language::getLanguage( $l,PRODUCTION); + $isProduction = $conf['production']; + $lang = Language::getLanguage( $l,$isProduction); $conf['language'] = $lang; $conf['language']['language_code'] = $l; break;