Add Money Format to Class

This commit is contained in:
Ibnu Maksum 2023-08-09 10:49:29 +07:00
parent a33b299811
commit 755e857979
No known key found for this signature in database
GPG key ID: 7FC82848810579E5

View file

@ -4,12 +4,21 @@
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
**/
class Lang {
public static function T($var) {
class Lang
{
public static function T($var)
{
return Lang($var);
}
public static function htmlspecialchars($var) {
public static function htmlspecialchars($var)
{
return htmlspecialchars($var);
}
public static function moneyFormat($var)
{
global $config;
return $config['currency_code'] . ' ' .number_format($var, 0, $config['dec_point'], $config['thousands_sep']);
}
}