allow [[plan]] and [[package]] to be replaced with plan name

This commit is contained in:
Ibnu Maksum 2024-04-05 17:37:41 +07:00
parent 1f5033b471
commit 0422c1e9bb
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -115,6 +115,7 @@ class Message
global $u;
$msg = str_replace('[[name]]', $customer['fullname'], $message);
$msg = str_replace('[[username]]', $customer['username'], $msg);
$msg = str_replace('[[plan]]', $package, $msg);
$msg = str_replace('[[package]]', $package, $msg);
$msg = str_replace('[[price]]', Lang::moneyFormat($price), $msg);
list($bills, $add_cost) = User::getBills($customer['id']);