mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-12 11:28:49 +00:00
Replace deprecated Addon::*registerHook by Hook::*register
This commit is contained in:
parent
eaeb834819
commit
c27b1cb66f
82 changed files with 625 additions and 630 deletions
|
@ -8,8 +8,8 @@
|
|||
*/
|
||||
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Core\Addon;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\Logger;
|
||||
use Friendica\Core\Renderer;
|
||||
|
@ -17,16 +17,16 @@ use Friendica\Util\Proxy as ProxyUtils;
|
|||
use Friendica\Util\Strings;
|
||||
|
||||
function impressum_install() {
|
||||
Addon::registerHook('load_config', 'addon/impressum/impressum.php', 'impressum_load_config');
|
||||
Addon::registerHook('about_hook', 'addon/impressum/impressum.php', 'impressum_show');
|
||||
Addon::registerHook('page_end', 'addon/impressum/impressum.php', 'impressum_footer');
|
||||
Hook::register('load_config', 'addon/impressum/impressum.php', 'impressum_load_config');
|
||||
Hook::register('about_hook', 'addon/impressum/impressum.php', 'impressum_show');
|
||||
Hook::register('page_end', 'addon/impressum/impressum.php', 'impressum_footer');
|
||||
Logger::log("installed impressum Addon");
|
||||
}
|
||||
|
||||
function impressum_uninstall() {
|
||||
Addon::unregisterHook('load_config', 'addon/impressum/impressum.php', 'impressum_load_config');
|
||||
Addon::unregisterHook('about_hook', 'addon/impressum/impressum.php', 'impressum_show');
|
||||
Addon::unregisterHook('page_end', 'addon/impressum/impressum.php', 'impressum_footer');
|
||||
Hook::unregister('load_config', 'addon/impressum/impressum.php', 'impressum_load_config');
|
||||
Hook::unregister('about_hook', 'addon/impressum/impressum.php', 'impressum_show');
|
||||
Hook::unregister('page_end', 'addon/impressum/impressum.php', 'impressum_footer');
|
||||
Logger::log("uninstalled impressum Addon");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue