summaryrefslogtreecommitdiffstats
path: root/modules-available/locations/inc
diff options
context:
space:
mode:
authorSimon Rettberg2016-09-07 11:39:51 +0200
committerSimon Rettberg2016-09-07 11:39:51 +0200
commit86423a7cc2f52a8f7428b8c75e7260a1f9439cda (patch)
tree82b9384451bab4604f5a5c1da721fdbe0b74b39c /modules-available/locations/inc
parent[Render] Add 'ovverride' to setTitle, so it's possible to set the title only ... (diff)
downloadslx-admin-86423a7cc2f52a8f7428b8c75e7260a1f9439cda.tar.gz
slx-admin-86423a7cc2f52a8f7428b8c75e7260a1f9439cda.tar.xz
slx-admin-86423a7cc2f52a8f7428b8c75e7260a1f9439cda.zip
[roomplanner] Show location name in title
Diffstat (limited to 'modules-available/locations/inc')
-rw-r--r--modules-available/locations/inc/location.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules-available/locations/inc/location.inc.php b/modules-available/locations/inc/location.inc.php
index 71a621db..81ee342f 100644
--- a/modules-available/locations/inc/location.inc.php
+++ b/modules-available/locations/inc/location.inc.php
@@ -26,6 +26,11 @@ class Location
return $rows;
}
+ public static function get($locationId)
+ {
+ return Database::queryFirst("SELECT * FROM location WHERE locationid = :locationId", compact('locationId'));
+ }
+
public static function getName($locationId)
{
self::getLocationsAssoc();