diff options
Diffstat (limited to 'packages/lcdproc')
-rw-r--r-- | packages/lcdproc/lcdproc_client.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/lcdproc/lcdproc_client.php b/packages/lcdproc/lcdproc_client.php index 8910b53a..f8ae20d7 100644 --- a/packages/lcdproc/lcdproc_client.php +++ b/packages/lcdproc/lcdproc_client.php @@ -30,7 +30,6 @@ // require_once("config.inc"); // require_once("functions.inc"); require_once("/usr/local/pkg/lcdproc.inc"); - $lcdproc_screens_config = $config['installedpackages']['lcdprocscreens']['config'][0]; /* Define functions */ function send_lcd_commands($lcd, $lcd_cmds) { @@ -55,6 +54,7 @@ function loop_status($lcd) { global $g; global $config; + $lcdproc_screens_config = $config['installedpackages']['lcdprocscreens']['config'][0]; /* keep a counter to see how many times we can loop */ $i = 1; while($i) { @@ -104,6 +104,9 @@ } function build_interface($lcd) { + global $g; + global $config; + $lcdproc_screens_config = $config['installedpackages']['lcdprocscreens']['config'][0]; $lcd_cmds = array(); $lcd_cmds[] = "hello"; $lcd_cmds[] = "client_set name pfSense"; |