From 29c705766604abcab61ea3c5eb5adeb942679507 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 16 Jun 2017 18:45:02 +0200 Subject: [locationinfo] Frontend mostly working again... --- modules-available/locationinfo/inc/locationinfo.inc.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'modules-available/locationinfo/inc/locationinfo.inc.php') diff --git a/modules-available/locationinfo/inc/locationinfo.inc.php b/modules-available/locationinfo/inc/locationinfo.inc.php index fa97a0c6..473804cc 100644 --- a/modules-available/locationinfo/inc/locationinfo.inc.php +++ b/modules-available/locationinfo/inc/locationinfo.inc.php @@ -11,14 +11,6 @@ class LocationInfo */ public static function getPcState($pc) { - /* pcState: - * [0] = IDLE (NOT IN USE) - * [1] = OCCUPIED (IN USE) - * [2] = OFF - * [3] = 10 days offline (BROKEN?) - */ - // TODO USE STATE NAME instead of numbers - $logintime = (int)$pc['logintime']; $lastseen = (int)$pc['lastseen']; $lastboot = (int)$pc['lastboot']; @@ -65,7 +57,7 @@ class LocationInfo * * @return array Return a default config. */ - public static function defaultPanelConfig() + public static function defaultPanelConfig($type) { return array( 'language' => 'en', -- cgit v1.2.3-55-g7522