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 | admin/helpers/src/autoload.php +5 -3 1.6.8 → 1.8.16 View file →
@@ -24,18 +24,20 @@
24 24 * @since 1.5
25 25 */
26 26 spl_autoload_register(function($class)
27 27 {
28 + $vcm_exists = is_file(implode(DIRECTORY_SEPARATOR, [VCM_SITE_PATH, 'helpers', 'lib.vikchannelmanager.php']));
29 +
28 30 // handle base VCM library
29 - if ($class === 'VikChannelManager')
31 + if ($class === 'VikChannelManager' || $class === 'E4jConnectRequest')
30 32 {
31 - return (bool) @include_once implode(DIRECTORY_SEPARATOR, [VCM_SITE_PATH, 'helpers', 'lib.vikchannelmanager.php']);
33 + return $vcm_exists && include_once implode(DIRECTORY_SEPARATOR, [VCM_SITE_PATH, 'helpers', 'lib.vikchannelmanager.php']);
32 34 }
33 35
34 36 // handle config VCM library
35 37 if ($class === 'VikChannelManagerConfig')
36 38 {
37 - return (bool) @include_once implode(DIRECTORY_SEPARATOR, [VCM_SITE_PATH, 'helpers', 'vcm_config.php']);
39 + return $vcm_exists && include_once implode(DIRECTORY_SEPARATOR, [VCM_SITE_PATH, 'helpers', 'vcm_config.php']);
38 40 }
39 41
40 42 // handle base VBO library
41 43 if ($class === 'VikBooking')