Move Notify::TYPE_COMMENT
parent
7bd1f05510
commit
4e9838f571
|
@ -11,6 +11,7 @@ use Friendica\Core\Hook;
|
||||||
use Friendica\Core\Logger;
|
use Friendica\Core\Logger;
|
||||||
use Friendica\Core\Renderer;
|
use Friendica\Core\Renderer;
|
||||||
use Friendica\DI;
|
use Friendica\DI;
|
||||||
|
use Friendica\Model\Notify\Type;
|
||||||
|
|
||||||
function gnot_install() {
|
function gnot_install() {
|
||||||
|
|
||||||
|
@ -92,6 +93,6 @@ function gnot_settings(&$a,&$s) {
|
||||||
function gnot_enotify_mail(&$a,&$b) {
|
function gnot_enotify_mail(&$a,&$b) {
|
||||||
if((! $b['uid']) || (! intval(DI::pConfig()->get($b['uid'], 'gnot','enable'))))
|
if((! $b['uid']) || (! intval(DI::pConfig()->get($b['uid'], 'gnot','enable'))))
|
||||||
return;
|
return;
|
||||||
if($b['type'] == NOTIFY_COMMENT)
|
if($b['type'] == Type::COMMENT)
|
||||||
$b['subject'] = DI::l10n()->t('[Friendica:Notify] Comment to conversation #%d', $b['parent']);
|
$b['subject'] = DI::l10n()->t('[Friendica:Notify] Comment to conversation #%d', $b['parent']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue