mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-13 03:48:49 +00:00
Addon class
plugin moved to Addon src class
This commit is contained in:
parent
e97235353f
commit
0afd633346
81 changed files with 567 additions and 566 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue