diff --git a/app/voicemail_greetings/voicemail_greetings.php b/app/voicemail_greetings/voicemail_greetings.php index f447614c4f..11faf4c88d 100644 --- a/app/voicemail_greetings/voicemail_greetings.php +++ b/app/voicemail_greetings/voicemail_greetings.php @@ -78,7 +78,7 @@ else { $v_greeting_dir = $_SESSION['switch']['storage']['dir'].'/voicemail/default/'.$_SESSION['domains'][$domain_uuid]['domain_name'].'/'.$voicemail_id; //upload the recording - if (($_POST['submit'] == "Save") && is_uploaded_file($_FILES['file']['tmp_name']) && permission_exists('recording_upload')) { + if (($_POST['submit'] == $text['button-save']) && is_uploaded_file($_FILES['file']['tmp_name']) && permission_exists('recording_upload')) { if ($_POST['type'] == 'rec') { for($i = 1; $i < 10; $i++){ $tmp_greeting = 'greeting_'.$i.'.wav'; @@ -97,7 +97,7 @@ else { } //save the selected greeting - if ($_REQUEST['submit'] == "Save") { + if ($_REQUEST['submit'] == $text['button-save']) { //save the greeting_id to a variable $greeting_id = check_str($_REQUEST['greeting_id']); @@ -307,7 +307,7 @@ else { $tmp_filesize = filesize($v_greeting_dir.'/'.$row['greeting_name']); $tmp_filesize = byte_convert($tmp_filesize); echo "