mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Add ability to set default accountcodes
This commit is contained in:
@@ -2192,4 +2192,19 @@ function number_pad($number,$n) {
|
||||
}
|
||||
}
|
||||
|
||||
//get accountode
|
||||
if (!function_exists('get_accountcode')) {
|
||||
function get_accountcode() {
|
||||
if (strlen($accountcode = $_SESSION['domain']['accountcode']['text']) > 0) {
|
||||
if ($accountcode == "none") {
|
||||
return;
|
||||
}
|
||||
}
|
||||
else {
|
||||
$accountcode = $_SESSION['domain_name'];
|
||||
}
|
||||
return $accountcode;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user