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 | libraries/adapter/loader/loader.php +14 -2 1.6.4 → 1.8.16 View file →
@@ -2,9 +2,9 @@
2 2 /**
3 3 * @package VikWP - Libraries
4 4 * @subpackage adapter.loader
5 5 * @author E4J s.r.l.
6 - * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved.
6 + * @copyright Copyright (C) 2023 E4J s.r.l. All Rights Reserved.
7 7 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
8 8 * @link https://vikwp.com
9 9 */
10 10
@@ -259,9 +259,21 @@
259 259 $result = JLoader::import('adapter.application.version');
260 260 break;
261 261
262 262 default:
263 - $result = false;
263 + /**
264 + * Autoload the native form fields.
265 + *
266 + * @since 10.1.51
267 + */
268 + if (preg_match("/^JFormField([a-z0-9]+)$/i", $class, $match))
269 + {
270 + $result = JLoader::import('adapter.form.fields.' . strtolower($match[1]));
271 + }
272 + else
273 + {
274 + $result = false;
275 + }
264 276 }
265 277
266 278 // in case the loaded class exists and the requested on starts with VikWP,
267 279 // create an alias to support a more appropriate notation