diff options
author | Simon Rettberg | 2016-09-07 11:39:51 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-09-07 11:39:51 +0200 |
commit | 86423a7cc2f52a8f7428b8c75e7260a1f9439cda (patch) | |
tree | 82b9384451bab4604f5a5c1da721fdbe0b74b39c /modules-available/locations | |
parent | [Render] Add 'ovverride' to setTitle, so it's possible to set the title only ... (diff) | |
download | slx-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')
-rw-r--r-- | modules-available/locations/inc/location.inc.php | 5 |
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(); |