diff options
author | Simon Rettberg | 2016-09-07 13:55:00 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-09-07 13:55:00 +0200 |
commit | 0594c7df2ba65c6a5bacf74796908c73e427941e (patch) | |
tree | a3a51d68b91b23c94599a154ed014e5fc877ebd5 /modules-available/locations | |
parent | [roomplanner] Make grid area higher, update slider when clicking (+) and (-) (diff) | |
download | slx-admin-0594c7df2ba65c6a5bacf74796908c73e427941e.tar.gz slx-admin-0594c7df2ba65c6a5bacf74796908c73e427941e.tar.xz slx-admin-0594c7df2ba65c6a5bacf74796908c73e427941e.zip |
[locations] Only show roomplanner button if module is enabled
Diffstat (limited to 'modules-available/locations')
-rw-r--r-- | modules-available/locations/page.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/locations/page.inc.php b/modules-available/locations/page.inc.php index b1146959..8574e4f4 100644 --- a/modules-available/locations/page.inc.php +++ b/modules-available/locations/page.inc.php @@ -412,7 +412,7 @@ class Page_Locations extends Page 'locationid' => $loc['locationid'], 'locationname' => $loc['locationname'], 'list' => $rows, - 'isLeaf' => Location::isLeaf($locationId), + 'roomplanner' => Module::get('roomplanner') !== false && Location::isLeaf($locationId), 'parents' => Location::getLocations($loc['parentlocationid'], $locationId, true) ); if (Module::get('dozmod') !== false) { |