From 8a51f9a414ff65d5a2a94bc01602a9062ba57e0f Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Fri, 4 Apr 2025 20:19:17 -0700 Subject: [PATCH] chore: move $nchan and $safemode var declarations --- emhttp/plugins/dynamix/include/DefaultPageLayout.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/emhttp/plugins/dynamix/include/DefaultPageLayout.php b/emhttp/plugins/dynamix/include/DefaultPageLayout.php index 5cc075665..2c1dc244b 100644 --- a/emhttp/plugins/dynamix/include/DefaultPageLayout.php +++ b/emhttp/plugins/dynamix/include/DefaultPageLayout.php @@ -29,6 +29,10 @@ $entity = $notify['entity'] & 1 == 1; $alerts = '/tmp/plugins/my_alerts.txt'; $wlan0 = file_exists('/sys/class/net/wlan0'); +$nchan = ['webGui/nchan/notify_poller','webGui/nchan/session_check']; +if ($wlan0) $nchan[] = 'webGui/nchan/wlan0'; +$safemode = _var($var,'safeMode')=='yes'; + function annotate($text) {echo "\n\n";} ?> @@ -70,9 +74,6 @@ function annotate($text) {echo "\n