diff options
Diffstat (limited to 'modules-available/locationinfo/api.inc.php')
-rw-r--r-- | modules-available/locationinfo/api.inc.php | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/modules-available/locationinfo/api.inc.php b/modules-available/locationinfo/api.inc.php index 644f990b..34c2a41a 100644 --- a/modules-available/locationinfo/api.inc.php +++ b/modules-available/locationinfo/api.inc.php @@ -230,7 +230,7 @@ function getConfig($locationID) LEFT JOIN `locationinfo_locationconfig` AS li ON (l.locationid = li.locationid) WHERE l.locationid = :locationID", array('locationID' => $locationID)); - $config = defaultConfig(); + $config = LocationInfo::defaultPanelConfig(); if ($dbresult !== false) { if (!empty($dbresult['config'])) { @@ -248,29 +248,6 @@ function getConfig($locationID) } /** - * Creates and returns a default config for room that didn't saved a config yet. - * - * @return array Return a default config. - */ -function defaultConfig() -{ - return array( - 'language' => 'en', - 'mode' => 1, - 'vertical' => false, - 'eco' => false, - 'scaledaysauto' => true, - 'daystoshow' => 7, - 'rotation' => 0, - 'scale' => 50, - 'switchtime' => 20, - 'calupdate' => 30, - 'roomupdate' => 5, - 'configupdate' => 180, - ); -} - -/** * Gets the pc states of the given locations. * * @param int[] $idList list of the location ids. |