Fix voicemail greetings so that the text shows up correctly after adding the multi-lingual framework.
This commit is contained in:
parent
e50fecbf75
commit
ee130817ee
|
|
@ -26,7 +26,6 @@
|
||||||
include "root.php";
|
include "root.php";
|
||||||
require_once "includes/require.php";
|
require_once "includes/require.php";
|
||||||
require_once "includes/checkauth.php";
|
require_once "includes/checkauth.php";
|
||||||
require_once "app_languages.php";
|
|
||||||
if (permission_exists('voicemail_greetings_add') || permission_exists('voicemail_greetings_edit')) {
|
if (permission_exists('voicemail_greetings_add') || permission_exists('voicemail_greetings_edit')) {
|
||||||
//access granted
|
//access granted
|
||||||
}
|
}
|
||||||
|
|
@ -36,7 +35,8 @@ else {
|
||||||
}
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
foreach($content_voicemail_greetings as $key => $value) {
|
require_once "app_languages.php";
|
||||||
|
foreach($text as $key => $value) {
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@
|
||||||
include "root.php";
|
include "root.php";
|
||||||
require_once "includes/require.php";
|
require_once "includes/require.php";
|
||||||
require_once "includes/checkauth.php";
|
require_once "includes/checkauth.php";
|
||||||
require_once "app_languages.php";
|
|
||||||
if (permission_exists('voicemail_greetings_view')) {
|
if (permission_exists('voicemail_greetings_view')) {
|
||||||
//access granted
|
//access granted
|
||||||
}
|
}
|
||||||
|
|
@ -35,10 +34,13 @@ else {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($content_voicemail_greetings as $key => $value) {
|
//add multi-lingual support
|
||||||
|
require_once "app_languages.php";
|
||||||
|
foreach($text as $key => $value) {
|
||||||
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
$text[$key] = $value[$_SESSION['domain']['language']['code']];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//additional includes
|
||||||
require_once "includes/paging.php";
|
require_once "includes/paging.php";
|
||||||
|
|
||||||
//set the max php execution time
|
//set the max php execution time
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue