From 80002fca2b85c1852c0f8f146b35a1179300c24c Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Thu, 30 Jun 2016 18:51:35 +0300 Subject: [PATCH] Fix. create default path when upload new profile. (#1725) Fix. set correct value for `Default` sampling. --- app/music_on_hold/music_on_hold.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/music_on_hold/music_on_hold.php b/app/music_on_hold/music_on_hold.php index 225d2ee6e2..85ee7fa652 100644 --- a/app/music_on_hold/music_on_hold.php +++ b/app/music_on_hold/music_on_hold.php @@ -160,11 +160,11 @@ $moh_rate_auto = false; } //define default path - //$moh_path = path_join($_SESSION['switch']['sounds']['dir'], 'music', - // (($moh_scope == 'global') ? 'global' : $_SESSION['domain_name']), - // $moh_name_only, $moh_rate - //); - + $moh_path = path_join($_SESSION['switch']['sounds']['dir'], 'music', + (($moh_scope == 'global') ? 'global' : $_SESSION['domain_name']), + $moh_name_only, $moh_rate + ); + //flag to mark if there already has such moh profile $moh_path_found = false; //begin query $music_on_hold_uuid = uuid(); @@ -490,7 +490,7 @@ echo " \n"; echo " \n"; echo "