1
0
Fork 0

Update Addon functions and calls

Update function names and calls for Addon class.
This commit is contained in:
Adam Magness 2018-01-17 13:42:40 -05:00
commit 11cf36105c
73 changed files with 544 additions and 464 deletions

View file

@ -10,6 +10,7 @@
*/
use Friendica\App;
use Friendica\Core\Addon;
use Friendica\Core\System;
use Friendica\Object\Image;
@ -35,13 +36,13 @@ function frost_content_loaded(App $a) {
}
function frost_install() {
register_hook('prepare_body_final', 'view/theme/frost/theme.php', 'frost_item_photo_links');
Addon::registerHook('prepare_body_final', 'view/theme/frost/theme.php', 'frost_item_photo_links');
logger("installed theme frost");
}
function frost_uninstall() {
unregister_hook('bbcode', 'view/theme/frost/theme.php', 'frost_bbcode');
Addon::unregisterHook('bbcode', 'view/theme/frost/theme.php', 'frost_bbcode');
logger("uninstalled theme frost");
}