aboutsummaryrefslogtreecommitdiffstats
path: root/packages/freeswitch/freeswitch_recordings_edit.tmp
diff options
context:
space:
mode:
Diffstat (limited to 'packages/freeswitch/freeswitch_recordings_edit.tmp')
-rw-r--r--packages/freeswitch/freeswitch_recordings_edit.tmp31
1 files changed, 15 insertions, 16 deletions
diff --git a/packages/freeswitch/freeswitch_recordings_edit.tmp b/packages/freeswitch/freeswitch_recordings_edit.tmp
index 309d0ae9..f41c5abc 100644
--- a/packages/freeswitch/freeswitch_recordings_edit.tmp
+++ b/packages/freeswitch/freeswitch_recordings_edit.tmp
@@ -64,26 +64,25 @@ if ($_POST) {
if (isset($id) && $a_recordings[$id]) {
- //update
-
- if (strlen($_POST['recordingid']) > 0) {
- $recordingent['recordingid'] = $_POST['recordingid'];
- }
- else {
- $recordingent['recordingid'] = guid();
- }
-
- $recordingent['filename'] = $_POST['filename'];
+ //update
+ if (strlen($_POST['recordingid']) > 0) {
+ $recordingent['recordingid'] = $_POST['recordingid'];
+ }
+ else {
+ $recordingent['recordingid'] = guid();
+ }
+
+ $recordingent['filename'] = $_POST['filename'];
- //if file name is not the same then rename the file
- if ($_POST['filename'] != $_POST['filename_orig']) {
- rename('/usr/local/freeswitch/recordings/'.$_POST['filename_orig'], '/usr/local/freeswitch/recordings/'.$_POST['filename']);
+ //if file name is not the same then rename the file
+ if ($_POST['filename'] != $_POST['filename_orig']) {
+ rename('/usr/local/freeswitch/recordings/'.$_POST['filename_orig'], '/usr/local/freeswitch/recordings/'.$_POST['filename']);
}
- $a_recordings[$id] = $recordingent;
+ $a_recordings[$id] = $recordingent;
}
else {
- //add
- $recordingent['filename'] = $_POST['filename'];
+ //add
+ $recordingent['filename'] = $_POST['filename'];
$a_recordings[] = $recordingent;
}