diff --git a/system/boot.php b/system/boot.php
index 374a5b24..6ec57409 100644
--- a/system/boot.php
+++ b/system/boot.php
@@ -129,11 +129,11 @@ try {
$e->getTraceAsString()
);
if (!Admin::getID()) {
- r2(U . 'home', 'e', $e->getMessage());
+ $ui->display('error-user.tpl'); die();
}
$ui->assign("error_message", $e->getMessage() . '
' . $e->getTraceAsString() . ''); $ui->assign("error_title", "PHPNuxBill Crash"); - $ui->display('router-error.tpl'); + $ui->display('error.tpl'); die(); } catch (Exception $e) { Message::sendTelegram( @@ -142,10 +142,10 @@ try { $e->getTraceAsString() ); if (!Admin::getID()) { - r2(U . 'home', 'e', $e->getMessage()); + $ui->display('error-user.tpl'); die(); } $ui->assign("error_message", $e->getMessage() . '
' . $e->getTraceAsString() . ''); $ui->assign("error_title", "PHPNuxBill Crash"); - $ui->display('router-error.tpl'); + $ui->display('error.tpl'); die(); } diff --git a/system/controllers/settings.php b/system/controllers/settings.php index 2363b257..33e4abe9 100644 --- a/system/controllers/settings.php +++ b/system/controllers/settings.php @@ -151,7 +151,7 @@ switch ($action) { $ui->assign("error_message", "Radius table not found.