aboutsummaryrefslogtreecommitdiffstats
path: root/core/namespace/Application.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/namespace/Application.php')
-rw-r--r--core/namespace/Application.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/namespace/Application.php b/core/namespace/Application.php
index 8c3be12..6a77865 100644
--- a/core/namespace/Application.php
+++ b/core/namespace/Application.php
@@ -59,7 +59,7 @@ class Application {
$Language = new Language(self::get('CORE.LANGUAGE'));
$Language->load(sprintf(ROOT.'core/language/%s.php', Application::get('CORE.LANGUAGE')));
- $Language->load(sprintf(ROOT.'template/%s/lang/%s.php', $template_name, $template_lang));
+ $Language->load(sprintf(ROOT.'theme/%s/lang/%s.php', $template_name, $template_lang));
self::$Language = $Language;
}
@@ -72,7 +72,7 @@ class Application {
#===============================================================================
public static function getSecurityToken(): string {
if(!isset($_SESSION['token'])) {
- $_SESSION['token'] = getRandomValue();
+ $_SESSION['token'] = bin2hex(random_bytes(16));
}
return $_SESSION['token'];
@@ -136,7 +136,7 @@ class Application {
#===============================================================================
public static function getTemplateURL($more = ''): string {
$template = self::get('TEMPLATE.NAME');
- return self::getURL("template/{$template}/{$more}");
+ return self::getURL("theme/{$template}/{$more}");
}
#===============================================================================
@@ -163,4 +163,3 @@ class Application {
exit();
}
}
-?> \ No newline at end of file