Add templates.json and fix bugs

This commit is contained in:
admin committed 2026-10-02 07:11:57 +00:00
1 parent dd33901255
commit 7dffa95fed
7 files changed
+36 -4

No files matched your search

Regular → Executable
+4 -2
View File
@@ -4,7 +4,7 @@ class HTMLLoader {
function __construct() {
// Check if Paths variables exists
if (!defined(TEMPLATE_PATH) || !defined(TEMPLATE_CONF)) {
if (!defined("TEMPLATE_PATH") || !defined("TEMPLATE_CONF")) {
die("TEMPLATE_PATH or TEMPLATE_CONF are not defined at " . __FILE__);
}
}
@@ -17,6 +17,8 @@ class HTMLLoader {
if (!array_key_exists($template, $json) && array_key_exists("error", $json)) {
$this->showError('Template "' . $template . '" was not found.');
}
}else{
die("Error Template was not found.");
}
}
}