summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/page.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2018-01-11 13:08:12 +0100
committerSimon Rettberg2018-01-11 13:08:12 +0100
commit48826a186b6b4bf4eecea95851d46864007b7965 (patch)
treefcaa5da64b9455ef2e5a2cc0a1594435e607b2ed /modules-available/locationinfo/page.inc.php
parent[statistics] Add "replace machines" feature (not linked to anywhere yet) (diff)
downloadslx-admin-48826a186b6b4bf4eecea95851d46864007b7965.tar.gz
slx-admin-48826a186b6b4bf4eecea95851d46864007b7965.tar.xz
slx-admin-48826a186b6b4bf4eecea95851d46864007b7965.zip
[locationinfo] URL: Add field to specify reload interval in minutes
Diffstat (limited to 'modules-available/locationinfo/page.inc.php')
-rw-r--r--modules-available/locationinfo/page.inc.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php
index 22a21951..777b84db 100644
--- a/modules-available/locationinfo/page.inc.php
+++ b/modules-available/locationinfo/page.inc.php
@@ -362,6 +362,7 @@ class Page_LocationInfo extends Page
$conf = array(
'url' => Request::post('url', 'https://www.bwlehrpool.de/', 'string'),
'insecure-ssl' => Request::post('insecure-ssl', 0, 'int'),
+ 'reload-minutes' => max(0, Request::post('reloadminutes', 0, 'int')),
);
return array('config' => $conf, 'locationids' => []);
}
@@ -887,6 +888,7 @@ class Page_LocationInfo extends Page
'panelname' => $panel['panelname'],
'url' => $config['url'],
'ssl_checked' => $config['insecure-ssl'] ? 'checked' : '',
+ 'reloadminutes' => (int)$config['reload-minutes'],
));
} else {
Render::addTemplate('page-config-panel-summary', array(