config read in function fix
authorNeszt Tibor <neszt.tibor@euronetrt.hu>
Sun, 3 Dec 2017 16:44:53 +0000 (17:44 +0100)
committerNeszt Tibor <neszt.tibor@euronetrt.hu>
Sun, 3 Dec 2017 16:44:53 +0000 (17:44 +0100)
index.php

index b0235eb..cde0058 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -17,7 +17,8 @@ function read_json_config($filename) {
 
 $player_script = '/tmp/yawep_screen_player_script.sh';
 
-$config = read_json_config('config.json');
+$config_file = 'config.json';
+$config = read_json_config($config_file);
 $default_player_cmd = "sudo omxplayer -s -o alsa:plughw:0,1 -y --threshold %Buffer% --no-osd --layer 100 --timeout 3 --aspect-mode stretch '%URL%'";
 $screenrc_file = "/tmp/yawep_player_screenrc";
 $screenlog_file = "/tmp/yawep_screen.log";