Closed lokamaya closed 5 years ago
(boolean) function hasHook()
Using strpos() to evaluate hooks is very unreliable, as it is prone to hook collision. For example when using ReCaptchaV2 as hooks, its generates an error because FormIt automatically tries to load the ReCaptcha class.
See MODx Forum thread/103830
It is same here https://github.com/Sterc/FormIt/pull/181
(boolean) function hasHook()
Using strpos() to evaluate hooks is very unreliable, as it is prone to hook collision. For example when using ReCaptchaV2 as hooks, its generates an error because FormIt automatically tries to load the ReCaptcha class.
See MODx Forum thread/103830