]> git.mxchange.org Git - friendica-addons.git/commitdiff
Merge pull request #492 from zeroadam/Addon
authorHypolite Petovan <mrpetovan@gmail.com>
Sat, 20 Jan 2018 19:36:26 +0000 (14:36 -0500)
committerGitHub <noreply@github.com>
Sat, 20 Jan 2018 19:36:26 +0000 (14:36 -0500)
Move plugins to src

1  2 
forumdirectory/forumdirectory.php

index 10924c677913844c18dafa34ae1cd578d7907f92,186697f26a90835103c03e90bf1358adde58b320..572f61570387652d44c1b5fafcee946dbf4373fd
@@@ -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()