Addon class

plugin moved to Addon src class
This commit is contained in:
Adam Magness 2018-01-16 19:51:12 -05:00
parent e97235353f
commit 0afd633346
81 changed files with 567 additions and 566 deletions

View file

@ -29,17 +29,17 @@
* about http/https but beware to put the trailing / at the end of your
* setting.
*/
use Friendica\Core\Addon;
use Friendica\Core\Config;
function piwik_install() {
register_hook('page_end', 'addon/piwik/piwik.php', 'piwik_analytics');
Addon::registerHook('page_end', 'addon/piwik/piwik.php', 'piwik_analytics');
logger("installed piwik plugin");
}
function piwik_uninstall() {
unregister_hook('page_end', 'addon/piwik/piwik.php', 'piwik_analytics');
Addon::unregisterHook('page_end', 'addon/piwik/piwik.php', 'piwik_analytics');
logger("uninstalled piwik plugin");
}