]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
mpfire.cgi: Use new perl system functions
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Jun 2021 13:33:57 +0000 (14:33 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Jun 2021 13:33:57 +0000 (14:33 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/mpfire.cgi

index c8cfc4b115f12f25275c5adf804718e1baf1f116..ea83d1db17f2e3b8fdc5b0beb6ed15c2d348071d 100644 (file)
@@ -231,7 +231,7 @@ if ( $mpfiresettings{'ACTION'} eq "scan" ){
        $mpd->updatedb();
        refreshpage();
 }elsif ( $mpfiresettings{'ACTION'} eq "playweb" ){
-       $message=system("/usr/local/bin/mpfirectrl","playweb","\"$mpfiresettings{'FILE'}\"","2>/dev/null");
+       $message= &General::system_output("/usr/local/bin/mpfirectrl","playweb","\"$mpfiresettings{'FILE'}\"");
 }elsif ( $mpfiresettings{'ACTION'} eq "playlist" ){
        $mpd->play();
 }elsif ( $mpfiresettings{'ACTION'} eq "emptyplaylist" ){