From cc32f07105a98da6665bfcefb32323c34563ebdd Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sun, 21 Jan 2018 08:14:19 +0100 Subject: [PATCH] calling hook has changed on Friendica development branch on Jan 20th 2018 --- typography.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/typography.php b/typography.php index 7b9cc88..7844722 100644 --- a/typography.php +++ b/typography.php @@ -2,18 +2,19 @@ /* * Name: Typography * Description: Applies typographical enhancements to the postings before displaying them - * Version: 0.1 + * Version: 0.2 * Author: Tobias Diekershoff * License: GPL 2.0 */ use Friendica\Core\PConfig; +use Friendica\Core\Addon; function typography_install () { - register_hook ('prepare_body', 'addon/typography/typography.php', 'typography_render' ); + Addon::registerHook ('prepare_body', 'addon/typography/typography.php', 'typography_render' ); } function typography_uninstall () { - unregister_hook ('prepare_body', 'addon/typography/typography.php', 'typography_render' ); + Addon::unregisterHook ('prepare_body', 'addon/typography/typography.php', 'typography_render' ); } function typography_render ( &$a, &$o) { require_once('php-typography/php-typography.php');