mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-30 06:39:46 +02:00
Add Money Format to Class
This commit is contained in:
parent
a33b299811
commit
755e857979
1 changed files with 12 additions and 3 deletions
|
@ -4,12 +4,21 @@
|
||||||
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
|
* PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/)
|
||||||
**/
|
**/
|
||||||
|
|
||||||
class Lang {
|
class Lang
|
||||||
public static function T($var) {
|
{
|
||||||
|
public static function T($var)
|
||||||
|
{
|
||||||
return Lang($var);
|
return Lang($var);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function htmlspecialchars($var) {
|
public static function htmlspecialchars($var)
|
||||||
|
{
|
||||||
return 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']);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue