Add templates.json and fix bugs
This commit is contained in:
1 parent
dd33901255
commit
7dffa95fed
7 files changed
+36
-4
No files matched your search
Regular → Executable
+4
-2
@@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user