| @@ -202,9 +202,9 @@ | ||
| 202 | 202 | if (preg_match("/[\/\\\\]views[\/\\\\](.*?)[\/\\\\]tmpl[\/\\\\]default\.xml$/i", $file, $matches)) |
| 203 | 203 | { |
| 204 | 204 | $id = $matches[1]; |
| 205 | 205 | // load the XML form |
| 206 | - $form = JForm::getInstance($id, $file); | |
| 206 | + $form = JForm::getInstance('vikbooking' . $id, $file); | |
| 207 | 207 | |
| 208 | 208 | $fields = []; |
| 209 | 209 | |
| 210 | 210 | foreach ($form->getFields() as $field) |