mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 19:53:56 +00:00
Add the text class to more of the applications.
This commit is contained in:
@@ -35,10 +35,8 @@ else {
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
require_once "app_languages.php";
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
//set the variables
|
||||
$cmd = check_str($_GET['cmd']);
|
||||
|
||||
@@ -38,10 +38,8 @@ require_once "resources/check_auth.php";
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
require_once "app_languages.php";
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
//show the header
|
||||
require_once "resources/header.php";
|
||||
|
||||
@@ -38,12 +38,8 @@ require_once "resources/check_auth.php";
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
if (!is_array($text)) {
|
||||
require_once "app_languages.php";
|
||||
foreach($text as $key => $value) {
|
||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||
}
|
||||
}
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
//request profile
|
||||
$sip_profile_name = trim($_REQUEST["profile"]);
|
||||
|
||||
Reference in New Issue
Block a user