]> git.mxchange.org Git - friendica-addons.git/commitdiff
[cookienotice] Fix wrong type-hint in hook function cookienotice_page_end
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 3 Jul 2022 12:37:53 +0000 (08:37 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 3 Jul 2022 12:37:53 +0000 (08:37 -0400)
- Fix "Argument 2 passed to cookienotice_page_end() must be of the type array, string given" error

cookienotice/cookienotice.php

index d6e71cf041eca7a2641071c1bceb13d6e470cad8..9eb77597a09a04260aaace4dc93c689497cc3be6 100644 (file)
@@ -98,7 +98,7 @@ function cookienotice_page_content_top(App $a, string &$b)
  *
  * @return void
  */
-function cookienotice_page_end(App $a, array &$b)
+function cookienotice_page_end(App $a, string &$b)
 {
        $text = (string)DI::config()->get('cookienotice', 'text', DI::l10n()->t('This website uses cookies to recognize revisiting and logged in users. You accept the usage of these cookies by continue browsing this website.'));
        $oktext = (string)DI::config()->get('cookienotice', 'oktext', DI::l10n()->t('OK'));