Use the new multi-lingual code on fusionpbx/core sub directories.
This commit is contained in:
@@ -42,13 +42,9 @@ if (
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
//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();
|
||||
|
||||
if (sizeof($_POST) > 0) {
|
||||
|
||||
|
||||
@@ -49,10 +49,8 @@
|
||||
}
|
||||
|
||||
//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 title
|
||||
if ($format == 'text') {
|
||||
|
||||
@@ -38,11 +38,8 @@
|
||||
$format = 'text'; //html, text
|
||||
|
||||
//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();
|
||||
}
|
||||
else if (!$included) {
|
||||
include "root.php";
|
||||
|
||||
Reference in New Issue
Block a user