From: Michael Tremer Date: Thu, 10 Jun 2021 13:33:57 +0000 (+0100) Subject: mpfire.cgi: Use new perl system functions X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88985bcc6ee6bf7fb9ac734b39411e6e013feb44;p=people%2Fms%2Fipfire-2.x.git mpfire.cgi: Use new perl system functions Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/mpfire.cgi b/html/cgi-bin/mpfire.cgi index c8cfc4b115..ea83d1db17 100644 --- a/html/cgi-bin/mpfire.cgi +++ b/html/cgi-bin/mpfire.cgi @@ -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" ){