mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fix the music on hold layout for a users without music on hold default view permission.
This commit is contained in:
@@ -303,12 +303,17 @@ if ($_GET['act'] == "del" && permission_exists('music_on_hold_delete')) {
|
||||
echo " <td style='padding-left: 5px;'> <br>\n";
|
||||
echo " <input name='submit' type='submit' class='btn' id='upload' value='Upload'>\n";
|
||||
echo " </td>\n";
|
||||
echo " <tr>\n";
|
||||
echo " </tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "</form>\n";
|
||||
echo "<br><br>\n";
|
||||
}
|
||||
|
||||
//set the row styles
|
||||
$c = 0;
|
||||
$row_style["0"] = "row_style0";
|
||||
$row_style["1"] = "row_style1";
|
||||
|
||||
//show the default category
|
||||
if (permission_exists('music_on_hold_default_view')) {
|
||||
echo "<b><i>Default</i></b>\n";
|
||||
@@ -327,10 +332,6 @@ if ($_GET['act'] == "del" && permission_exists('music_on_hold_delete')) {
|
||||
echo " <td width='22px' align=\"center\"></td>\n";
|
||||
echo " </tr>";
|
||||
|
||||
$c = 0;
|
||||
$row_style["0"] = "row_style0";
|
||||
$row_style["1"] = "row_style1";
|
||||
|
||||
foreach ($sampling_rate_dirs as $sampling_rate_dir) {
|
||||
if ($handle = opendir($music_on_hold_dir."/".$sampling_rate_dir)) {
|
||||
while (false !== ($file = readdir($handle))) {
|
||||
@@ -361,8 +362,9 @@ if ($_GET['act'] == "del" && permission_exists('music_on_hold_delete')) {
|
||||
closedir($handle);
|
||||
}
|
||||
}
|
||||
echo "</table>\n";
|
||||
}
|
||||
echo "</table>\n";
|
||||
|
||||
if ($v_path_show) {
|
||||
echo "<div style='font-size: 10px; text-align: right; margin-right: 25px;'><b>Location:</b> ".$music_on_hold_dir."</div>\n";
|
||||
}
|
||||
@@ -434,7 +436,6 @@ if ($_GET['act'] == "del" && permission_exists('music_on_hold_delete')) {
|
||||
echo "<div style='font-size: 10px; text-align: right; margin-right: 25px;'><b>Location:</b> ".$music_on_hold_category_parent_dir."/".$category_dir."</div>\n";
|
||||
}
|
||||
echo "<br><br>\n";
|
||||
|
||||
}
|
||||
|
||||
//include the footer
|
||||
|
||||
Reference in New Issue
Block a user