]> git.mxchange.org Git - friendica-addons.git/blobdiff - cookienotice/cookienotice.php
Merge pull request #1279 from tobiasd/20220819-fr
[friendica-addons.git] / cookienotice / cookienotice.php
index 5364573ca3571cf16156e3ebd98169c2b96d6e12..9eb77597a09a04260aaace4dc93c689497cc3be6 100644 (file)
@@ -82,7 +82,7 @@ function cookienotice_addon_admin_post(App $a)
  *
  * @return void
  */
-function cookienotice_page_content_top(App $a, array &$b)
+function cookienotice_page_content_top(App $a, string &$b)
 {
        DI::page()->registerStylesheet(__DIR__ . '/cookienotice.css');
        DI::page()->registerFooterScript(__DIR__ . '/cookienotice.js');
@@ -98,7 +98,7 @@ function cookienotice_page_content_top(App $a, array &$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'));