Site crashes with PHP error when trying to save new site
Steps to reproduce:
- go to admin page -> sites list : /index.php?module=settings/sites
- press "add site" button
- fill forms
- press "save site"
Result:
Fix:
in /admin/controller/settings/site.php
line 149 $site['id'] = $site_id;
line 152 list($site, $settings, $site_id, $data) = Event :: trigger(__CLASS__,__FUNCTION__, $site, $settings, $site_id, $data);
Thanks for the bug report, I fixed the warning https://github.com/givanz/Vvveb/commit/b529366154c6b89b8583f15c4d50149f5c1ac3cc
Line 52 should read $setting not $settings as shown above - just in case someone copies that line :-)
Thanks for pointing out, I fixed wrong event parameters https://github.com/givanz/Vvveb/commit/3a2cfc6fd7e038b3446ed92e974f487e5929d474.