From 86423a7cc2f52a8f7428b8c75e7260a1f9439cda Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 7 Sep 2016 11:39:51 +0200 Subject: [roomplanner] Show location name in title --- modules-available/locations/inc/location.inc.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules-available/locations') 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(); -- cgit v1.2.3-55-g7522