From 865100a7715ba80060b08901be4a1e832dd52dda Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 26 Mar 2020 13:21:10 -0600 Subject: [PATCH] MOH: Cleanup. --- app/music_on_hold/music_on_hold.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/music_on_hold/music_on_hold.php b/app/music_on_hold/music_on_hold.php index ebd6beedc1..1ae364380c 100644 --- a/app/music_on_hold/music_on_hold.php +++ b/app/music_on_hold/music_on_hold.php @@ -236,8 +236,7 @@ //set the variables $stream_path = str_replace('$${sounds_dir}', $_SESSION['switch']['sounds']['dir'], $stream_path); -// echo $stream_new_name ? 'new stream name' : 'not new stream name'; -// echo '
'; + //add new path if ($stream_new_name) { $stream_uuid = uuid(); @@ -261,12 +260,11 @@ $database->app_name = 'music_on_hold'; $database->app_uuid = '1dafe0f8-c08a-289b-0312-15baf4f20f81'; $database->save($array); -// view_array($database->message, false); unset($array); $p->delete('music_on_hold_add', 'temp'); } -// echo '$stream_path = '.$stream_path.'
';exit; + //check target folder, move uploaded file if (!is_dir($stream_path)) { event_socket_mkdir($stream_path);