PluginProbe
Yatra – Travel Booking & Tour Operator Software / 3.0.16
Yatra – Travel Booking & Tour Operator Software v3.0.16
3.0.16 3.0.15 3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 All 84 releases
← All changes | app/Core/Routing/RouteMatcher.php +7 -7 3.0.2.7 → 3.0.16 View file →
@@ -41,9 +41,9 @@
41 41 if (!$slug) {
42 42 return null;
43 43 }
44 44
45 - $slug = sanitize_title($slug);
45 + $slug = \Yatra\Helpers\SlugHelper::generate($slug);
46 46 $map = [
47 47 'dashboard' => 'dashboard',
48 48 'profile' => 'profile',
49 49 'bookings' => 'bookings',
@@ -96,11 +96,11 @@
96 96 */
97 97 public static function matchListingPage(string $path): ?array
98 98 {
99 99 $bases = [
100 - 'destination' => SettingsService::getString('destination_base', 'destination'),
101 - 'activity' => SettingsService::getString('activity_base', 'activity'),
102 - 'category' => SettingsService::getString('trip_category_base', 'trip-category'),
100 + 'destination' => SettingsService::getDestinationBase(),
101 + 'activity' => SettingsService::getActivityBase(),
102 + 'category' => SettingsService::getTripCategoryBase(),
103 103 ];
104 104
105 105 foreach ($bases as $type => $base) {
106 106 if ($path === $base) {
@@ -123,11 +123,11 @@
123 123 */
124 124 public static function matchTaxonomyPage(string $path): ?array
125 125 {
126 126 $bases = [
127 - 'destination' => SettingsService::getString('destination_base', 'destination'),
128 - 'activity' => SettingsService::getString('activity_base', 'activity'),
129 - 'category' => SettingsService::getString('trip_category_base', 'trip-category'),
127 + 'destination' => SettingsService::getDestinationBase(),
128 + 'activity' => SettingsService::getActivityBase(),
129 + 'category' => SettingsService::getTripCategoryBase(),
130 130 ];
131 131
132 132 foreach ($bases as $type => $base) {
133 133 $slug = UrlParser::extractSlugFromPath($path, $base);