From 10adbe48ab1b894832e95e12bf52410f7e06c03e Mon Sep 17 00:00:00 2001 From: iBNu Maksum Date: Tue, 4 Feb 2025 17:22:11 +0700 Subject: [PATCH] fix url recharge and voucher --- system/controllers/autoload_user.php | 2 +- system/controllers/customers.php | 2 +- system/controllers/plan.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/system/controllers/autoload_user.php b/system/controllers/autoload_user.php index 0b18eacf..d16ca8d9 100644 --- a/system/controllers/autoload_user.php +++ b/system/controllers/autoload_user.php @@ -79,5 +79,5 @@ switch ($action) { } die(); default: - $ui->display('404.tpl'); + die(); } diff --git a/system/controllers/customers.php b/system/controllers/customers.php index 58f649ec..0db530a4 100644 --- a/system/controllers/customers.php +++ b/system/controllers/customers.php @@ -225,7 +225,7 @@ switch ($action) { $ui->assign('server', $b['routers']); $ui->assign('plan', $plan); $ui->assign('csrf_token', Csrf::generateAndStoreToken()); - $ui->display('recharge-confirm.tpl'); + $ui->display('admin/plan/recharge-confirm.tpl'); } else { r2(getUrl('customers/view/') . $id_customer, 'e', 'Cannot find active plan'); } diff --git a/system/controllers/plan.php b/system/controllers/plan.php index a3f5a14b..dec942e1 100644 --- a/system/controllers/plan.php +++ b/system/controllers/plan.php @@ -791,7 +791,7 @@ switch ($action) { $ui->assign('from_id', 0); $ui->assign('vpl', '3'); $ui->assign('pagebreak', $voucherPerPage); - $ui->display('print-voucher.tpl'); + $ui->display('admin/print/voucher.tpl'); } if ($numbervoucher == 1) { @@ -891,7 +891,7 @@ switch ($action) { $content .= Lang::pad($config['note'], ' ', 2) . "\n"; $ui->assign('_title', Lang::T('View')); $ui->assign('whatsapp', urlencode("```$content```")); - $ui->display('voucher-view.tpl'); + $ui->display('admin/voucher/view.tpl'); } else { r2(getUrl('plan/voucher/'), 'e', Lang::T('Voucher Not Found')); }