BugFix-default moh for source mode (#1657)

populate the default moh for switch source installs
set comment indents as preferred
This commit is contained in:
Mafoo 2016-06-14 00:48:36 +01:00 committed by FusionPBX
parent 91562a9e41
commit 54b0b3fb9a
1 changed files with 27 additions and 23 deletions

View File

@ -125,6 +125,10 @@ include "root.php";
}
$moh_list[$moh_value] = str_replace('_', ' ', $moh_name);
}
//detect source installed moh
if(is_dir($music_on_hold_dir."/8000")) {
$moh_list["local_stream://default"] = $text['opt-default'];
}
return $moh_list;
}