https://reisub.nsupdate.info/git
/
friendica-addons.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe4982d
)
[cookienotice] Fix wrong type-hint in hook function cookienotice_page_content_top
author
Hypolite Petovan
<hypolite@mrpetovan.com>
Sun, 3 Jul 2022 04:26:55 +0000
(
00:26
-0400)
committer
Hypolite Petovan
<hypolite@mrpetovan.com>
Sun, 3 Jul 2022 04:26:55 +0000
(
00:26
-0400)
- Fix "Argument 2 passed to cookienotice_page_content_top() must be of the type array, string given" error
cookienotice/cookienotice.php
patch
|
blob
|
history
diff --git
a/cookienotice/cookienotice.php
b/cookienotice/cookienotice.php
index
5364573
..
d6e71cf
100644
(file)
--- a/
cookienotice/cookienotice.php
+++ b/
cookienotice/cookienotice.php
@@
-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');