Conference Center - Edit: Remove temporary code, clean up.

This commit is contained in:
fusionate 2023-11-07 00:56:19 +00:00
parent c12dd29293
commit 73e3cb6ce1
No known key found for this signature in database
1 changed files with 1 additions and 5 deletions

View File

@ -382,11 +382,7 @@
if (!empty($instance_value) && $instance_value == $row["value"]) {
$selected = "selected='selected'";
if ($key == 'recordings') {
echo "<option value=''>".$sounds->full_path."</option>\n";
if (!empty($sounds->full_path) && is_array($sounds->full_path) && in_array('recordings', $sounds->full_path)) {
$row["value"] = str_replace($_SESSION['switch']['recordings']['dir'].'/'.$_SESSION['domain_name'].'/','',$row["value"]);
}
$playable = '../recordings/recordings.php?action=download&type=rec&filename='.$row["value"];
$playable = '../recordings/recordings.php?action=download&type=rec&filename='.str_replace($_SESSION['switch']['recordings']['dir'].'/'.$_SESSION['domain_name'].'/','',$row["value"]);
}
else if ($key == 'sounds') {
$playable = '../switch/sounds.php?action=download&filename='.$row["value"];