From: Hypolite Petovan Date: Sat, 20 Jan 2018 19:36:26 +0000 (-0500) Subject: Merge pull request #492 from zeroadam/Addon X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c6e5bc3429c9c610895ba826d841cddd8c0f378b;p=friendica-addons.git Merge pull request #492 from zeroadam/Addon Move plugins to src --- c6e5bc3429c9c610895ba826d841cddd8c0f378b diff --cc forumdirectory/forumdirectory.php index 10924c67,186697f2..572f6157 --- a/forumdirectory/forumdirectory.php +++ b/forumdirectory/forumdirectory.php @@@ -9,23 -9,16 +9,22 @@@ use Friendica\Content\Nav; use Friendica\Content\Widget; + use Friendica\Core\Addon; use Friendica\Core\Config; use Friendica\Database\DBM; +use Friendica\Model\Profile; + +require_once 'boot.php'; +require_once 'include/dba.php'; +require_once 'include/plugin.php'; +require_once 'include/text.php'; - function forumdirectory_install() - { - register_hook('app_menu', 'addon/forumdirectory/forumdirectory.php', 'forumdirectory_app_menu'); + function forumdirectory_install() { + Addon::registerHook('app_menu', 'addon/forumdirectory/forumdirectory.php', 'forumdirectory_app_menu'); } - function forumdirectory_uninstall() - { - unregister_hook('app_menu', 'addon/forumdirectory/forumdirectory.php', 'forumdirectory_app_menu'); + function forumdirectory_uninstall() { + Addon::unregisterHook('app_menu', 'addon/forumdirectory/forumdirectory.php', 'forumdirectory_app_menu'); } function forumdirectory_module()