X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=doc%2FAddons.md;h=d448b026b8cd8cf6d1fa23cf11cd747161c106f1;hb=75c74e856290a712344ad6b4042ef07ef661d584;hp=6e975650034c332ff8907e0c5654abafd6649647;hpb=3c76826793feeb933dab7a07dab7cc7eb2efc451;p=friendica.git diff --git a/doc/Addons.md b/doc/Addons.md index 6e97565003..d448b026b8 100644 --- a/doc/Addons.md +++ b/doc/Addons.md @@ -472,14 +472,14 @@ Here is a complete list of all hook callbacks with file locations (as of 24-Sep- Hook::callAll('init_1'); Hook::callAll('app_menu', $arr); - Hook::callAll('page_content_top', $a->page['content']); + Hook::callAll('page_content_top', DI::page()['content']); Hook::callAll($a->module.'_mod_init', $placeholder); Hook::callAll($a->module.'_mod_init', $placeholder); Hook::callAll($a->module.'_mod_post', $_POST); Hook::callAll($a->module.'_mod_afterpost', $placeholder); Hook::callAll($a->module.'_mod_content', $arr); Hook::callAll($a->module.'_mod_aftercontent', $arr); - Hook::callAll('page_end', $a->page['content']); + Hook::callAll('page_end', DI::page()['content']); ### include/api.php @@ -703,7 +703,7 @@ Here is a complete list of all hook callbacks with file locations (as of 24-Sep- ### src/Content/Nav.php - Hook::callAll('page_header', $a->page['nav']); + Hook::callAll('page_header', DI::page()['nav']); Hook::callAll('nav_info', $nav); ### src/Worker/Directory.php