*
*
*/
+
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() {
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']);
}
use Friendica\Core\Renderer;
use Friendica\Database\DBA;
use Friendica\DI;
-use Friendica\Model\Notify\Type;
+use Friendica\Model\Notification;
use Friendica\Util\ConfigFileLoader;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Strings;
if (DBA::isResult($r)) {
foreach ($r as $rr) {
notification([
- 'type' => Type::SYSTEM,
+ 'type' => Notification/Type::SYSTEM,
'uid' => $rr['uid'],
'system_type' => 'public_server_expire',
'source_name' => DI::l10n()->t('Administrator'),
use Friendica\Core\Search;
use Friendica\Database\DBA;
use Friendica\DI;
-use Friendica\Model\Notify\Type;
+use Friendica\Model\Notification;
use Friendica\Model\User;
use Friendica\Util\ConfigFileLoader;
use Friendica\Util\DateTimeFormat;
if(count($r)) {
foreach($r as $rr) {
notification([
- 'type' => Type::SYSTEM,
+ 'type' => Notification/Type::SYSTEM,
'uid' => $rr['uid'],
'system_type' => 'testdrive_expire',
'source_name' => DI::l10n()->t('Administrator'),