*
*
*/
+
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\DI;
-use Friendica\Model\Notify\Type;
+use Friendica\Model\Notification;
function gnot_install() {
Logger::log("installed gnot");
}
-
-function gnot_uninstall() {
-
- Hook::unregister('addon_settings', 'addon/gnot/gnot.php', 'gnot_settings');
- Hook::unregister('addon_settings_post', 'addon/gnot/gnot.php', 'gnot_settings_post');
- Hook::unregister('enotify_mail', 'addon/gnot/gnot.php', 'gnot_enotify_mail');
-
-
- Logger::log("removed gnot");
-}
-
-
-
/**
*
* Callback from the settings post function.
function gnot_enotify_mail(&$a,&$b) {
if((! $b['uid']) || (! intval(DI::pConfig()->get($b['uid'], 'gnot','enable'))))
return;
- if($b['type'] == Type::COMMENT)
+ if($b['type'] == Notification\Type::COMMENT)
$b['subject'] = DI::l10n()->t('[Friendica:Notify] Comment to conversation #%d', $b['parent']);
}