From 01b92d37a000089fec087aed5593febcdc63ef8b Mon Sep 17 00:00:00 2001 From: PipoCanaja Date: Wed, 11 Jul 2018 16:09:18 +0200 Subject: [PATCH] Conditionnal display of submenu if maps are defined --- Weathermap.php | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/Weathermap.php b/Weathermap.php index 8f25f674..430c390d 100644 --- a/Weathermap.php +++ b/Weathermap.php @@ -5,18 +5,31 @@ class Weathermap { public static function menu() { + //Include config + include_once 'config.inc.php'; -include_once 'config.inc.php'; + //Parse config files + $files = list_weathermaps($mapdir); - echo(''); } } ?>