Changeset View
Changeset View
Standalone View
Standalone View
src/applications/audit/mail/PhabricatorAuditMailReceiver.php
<?php | <?php | ||||
final class PhabricatorAuditMailReceiver extends PhabricatorObjectMailReceiver { | final class PhabricatorAuditMailReceiver extends PhabricatorObjectMailReceiver { | ||||
public function isEnabled() { | public function isEnabled() { | ||||
return PhabricatorApplication::isClassInstalled( | return PhabricatorApplication::isClassInstalled( | ||||
'PhabricatorAuditApplication'); | 'PhabricatorDiffusionApplication'); | ||||
} | } | ||||
protected function getObjectPattern() { | protected function getObjectPattern() { | ||||
return 'COMMIT[1-9]\d*'; | return 'COMMIT[1-9]\d*'; | ||||
} | } | ||||
protected function loadObject($pattern, PhabricatorUser $viewer) { | protected function loadObject($pattern, PhabricatorUser $viewer) { | ||||
$id = (int)preg_replace('/^COMMIT/', '', $pattern); | $id = (int)preg_replace('/^COMMIT/', '', $pattern); | ||||
Show All 13 Lines |