PluginProbe
VikBooking Hotel Booking Engine & PMS / 1.8.16
VikBooking Hotel Booking Engine & PMS v1.8.16
1.8.16 1.8.15 1.8.14 1.8.13 1.8.12 1.8.11 1.8.10 1.8.9 1.8.6 1.8.7 1.8.8 trunk 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 All 37 releases
← All changes | site/views/quote/view.html.php +4 -0 1.8.9 → 1.8.16 View file →
@@ -16,8 +16,9 @@
16 16 {
17 17 public function display($tpl = null)
18 18 {
19 19 $app = JFactory::getApplication();
20 + $vbo_tn = VikBooking::getTranslator();
20 21
21 22 // set noindex instruction for robots
22 23 JFactory::getDocument()->setMetaData('robots', 'noindex, nofollow');
23 24
@@ -59,8 +60,10 @@
59 60 // map the information
60 61 $roomsData = array_map(function($roomId) {
61 62 return VikBooking::getRoomInfo($roomId, [], true);
62 63 }, $involvedRoomIds);
64 + // translate records
65 + $vbo_tn->translateContents($roomsData, '#__vikbooking_rooms');
63 66 // turn the list into associative
64 67 $roomsData = array_combine(array_column($roomsData, 'id'), array_values($roomsData));
65 68 }
66 69
@@ -66,8 +69,9 @@
66 69
67 70 // set template properties
68 71 $this->quoteData = $quoteData;
69 72 $this->roomsData = $roomsData;
73 + $this->vbo_tn = $vbo_tn;
70 74
71 75 // display template
72 76 parent::display($tpl);
73 77 }