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/views/config/tmpl/default_five.php +4 -1 1.8.7 → 1.8.16 View file →
@@ -14,9 +14,12 @@
14 14
15 15 $current_smsapi = VikBooking::getSMSAPIClass();
16 16
17 17 $allf = glob(VBO_ADMIN_PATH . DIRECTORY_SEPARATOR . 'smsapi' . DIRECTORY_SEPARATOR . '*.php');
18 -$allf = is_array($allf) ? $allf : [];
18 +$allf = array_values(array_filter((array) $allf, function($fPath) {
19 + $fPath = basename($fPath);
20 + return $fPath && !preg_match('/^whatsapp/i', $fPath);
21 +}));
19 22
20 23 $psel = "<select name=\"smsapi\" id=\"smsapifile\" onchange=\"vikLoadSMSParameters(this.value);\">\n<option value=\"\"></option>\n";
21 24 $classfiles = [];
22 25 foreach ($allf as $af) {