- $a = get_app();
- logger('check_form_security_token failed: user ' . $a->user['guid'] . ' - form element ' . $typename);
- logger('check_form_security_token failed: _REQUEST data: ' . print_r($_REQUEST, true), LOGGER_DATA);
- notice(check_form_security_std_err_msg());
- goaway(System::baseUrl() . $err_redirect);
+ $a = DI::app();
+ Logger::log('checkFormSecurityToken failed: user ' . $a->user['guid'] . ' - form element ' . $typename);
+ Logger::log('checkFormSecurityToken failed: _REQUEST data: ' . print_r($_REQUEST, true), Logger::DATA);
+ notice(self::getFormSecurityStandardErrorMessage());
+ DI::baseUrl()->redirect($err_redirect);