Fix path to scripts folder now that ajax PHP is in a subfolder
This commit is contained in:
parent
0f4cdd1b35
commit
07c4dd7d4d
|
@ -27,7 +27,7 @@ $query = "SELECT songid FROM " . RECENTSTABLE . " ORDER BY timeplayed DESC limit
|
|||
$sth = $globaldbh->prepare($query);
|
||||
$sth->execute();
|
||||
$data['volume'] = getSystemVolume();
|
||||
system("HOME=" . WEBUSERHOMEDIR . " && scripts/homeaudio_togglemute.pl -show", $retval);
|
||||
system("HOME=" . WEBUSERHOMEDIR . " && ../scripts/homeaudio_togglemute.pl -show", $retval);
|
||||
$data['muted'] = ($retval == 0) ? false : true;
|
||||
$data['songplaying'] = "";
|
||||
$data['songlist'] = "";
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
require '../header.php';
|
||||
|
||||
if ( isset($_REQUEST['show']) && ($_REQUEST['show'] == 'show') ) {
|
||||
system("HOME=" . WEBUSERHOMEDIR . " && scripts/homeaudio_togglemute.pl -show", $retval);
|
||||
system("HOME=" . WEBUSERHOMEDIR . " && ../scripts/homeaudio_togglemute.pl -show", $retval);
|
||||
} else {
|
||||
system("HOME=" . WEBUSERHOMEDIR . " && scripts/homeaudio_togglemute.pl", $retval);
|
||||
system("HOME=" . WEBUSERHOMEDIR . " && ../scripts/homeaudio_togglemute.pl", $retval);
|
||||
}
|
||||
|
||||
$data = array();
|
||||
|
|
Loading…
Reference in New Issue
Block a user