summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-05-12 16:52:50 +0200
committerThomas Lange <code@nerdmind.de>2017-05-12 16:52:50 +0200
commitbf3a2dd66bcf2c8f54fb35bcc477e4f3f75de3c4 (patch)
treee5b80442b8980fb339dbcfe749b2c0dea3783681 /core
parent9025d07767b19bb3d0f694c5c39b61446b4917a1 (diff)
downloadblog-bf3a2dd66bcf2c8f54fb35bcc477e4f3f75de3c4.tar.gz
blog-bf3a2dd66bcf2c8f54fb35bcc477e4f3f75de3c4.tar.xz
blog-bf3a2dd66bcf2c8f54fb35bcc477e4f3f75de3c4.zip
The method "getLanguage" has been restructured.
Diffstat (limited to 'core')
-rw-r--r--core/namespace/Application.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/namespace/Application.php b/core/namespace/Application.php
index e5afb85..b4796c6 100644
--- a/core/namespace/Application.php
+++ b/core/namespace/Application.php
@@ -56,8 +56,11 @@ class Application {
#===============================================================================
public static function getLanguage($force = FALSE): Language {
if(!self::$Language instanceof Language OR $force === TRUE) {
+ $template_name = self::get('TEMPLATE.NAME');
+ $template_lang = self::get('TEMPLATE.LANG');
+
$Language = new Language(self::get('CORE.LANGUAGE'));
- $Language->loadLanguage(ROOT.'template/'.self::get('TEMPLATE.NAME').'/lang/'.self::get('TEMPLATE.LANG').'.php');
+ $Language->loadLanguage(sprintf(ROOT.'template/%s/lang/%s.php', $template_name, $template_lang));
self::$Language = $Language;
}