]> git.mxchange.org Git - friendica.git/blobdiff - src/BaseModule.php
Convert custom profile field URL values to rel="me" links
[friendica.git] / src / BaseModule.php
index 2e7d8bd789278e47ca8151d1addc21a4c0303134..09107f04722c6a66754a706f73be772ce5a8193f 100644 (file)
@@ -284,7 +284,7 @@ abstract class BaseModule implements ICanHandleRequests
        /**
         * Fetch a request value and apply default values and check against minimal and maximal values
         *
-        * @param array $input Input viels
+        * @param array $input Input fields
         * @param string $parameter Parameter
         * @param mixed $default Default
         * @param mixed $minimal_value Minimal value
@@ -389,7 +389,7 @@ abstract class BaseModule implements ICanHandleRequests
 
        public static function getFormSecurityStandardErrorMessage(): string
        {
-               return DI::l10n()->t("The form security token was not correct. This probably happened because the form has been opened for too long \x28>3 hours\x29 before submitting it.") . EOL;
+               return DI::l10n()->t("The form security token was not correct. This probably happened because the form has been opened for too long \x28>3 hours\x29 before submitting it.");
        }
 
        public static function checkFormSecurityTokenRedirectOnError(string $err_redirect, string $typename = '', string $formname = 'form_security_token')
@@ -397,7 +397,7 @@ abstract class BaseModule implements ICanHandleRequests
                if (!self::checkFormSecurityToken($typename, $formname)) {
                        Logger::notice('checkFormSecurityToken failed: user ' . DI::app()->getLoggedInUserNickname() . ' - form element ' . $typename);
                        Logger::debug('checkFormSecurityToken failed', ['request' => $_REQUEST]);
-                       notice(self::getFormSecurityStandardErrorMessage());
+                       DI::sysmsg()->addNotice(self::getFormSecurityStandardErrorMessage());
                        DI::baseUrl()->redirect($err_redirect);
                }
        }