mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
[various] Fix hook function type-hints
- Address https://friendica.xyz/display/adf174d5-1562-b8d8-53d7-ffd690518338
This commit is contained in:
parent
de4c972501
commit
90dec95b6e
4 changed files with 7 additions and 7 deletions
|
@ -17,7 +17,7 @@ function pageheader_install() {
|
|||
Hook::register('page_content_top', __FILE__, 'pageheader_fetch');
|
||||
}
|
||||
|
||||
function pageheader_addon_admin(App &$a, &$s)
|
||||
function pageheader_addon_admin(App &$a, string &$s)
|
||||
{
|
||||
if (!$a->isSiteAdmin()) {
|
||||
return;
|
||||
|
@ -52,7 +52,7 @@ function pageheader_addon_admin_post(App $a)
|
|||
}
|
||||
}
|
||||
|
||||
function pageheader_fetch(App $a, array &$b)
|
||||
function pageheader_fetch(App $a, string &$b)
|
||||
{
|
||||
if(file_exists('pageheader.html')){
|
||||
$s = file_get_contents('pageheader.html');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue