mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 21:10:56 +01:00
Always install the "icon" and "emoji" remarkup rules
Summary: Ref T10394. Currently, these rules are only active if the Macro application is installed. Instead, install them unconditionally. Test Plan: - Used `{icon camera}` with Macro installed and uninstalled. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10394 Differential Revision: https://secure.phabricator.com/D15311
This commit is contained in:
parent
4e40b17aca
commit
50f910ce67
2 changed files with 3 additions and 7 deletions
|
@ -42,13 +42,6 @@ final class PhabricatorMacroApplication extends PhabricatorApplication {
|
|||
);
|
||||
}
|
||||
|
||||
public function getRemarkupRules() {
|
||||
return array(
|
||||
new PhabricatorIconRemarkupRule(),
|
||||
new PhabricatorEmojiRemarkupRule(),
|
||||
);
|
||||
}
|
||||
|
||||
protected function getCustomCapabilities() {
|
||||
return array(
|
||||
PhabricatorMacroManageCapability::CAPABILITY => array(
|
||||
|
|
|
@ -492,6 +492,9 @@ final class PhabricatorMarkupEngine extends Phobject {
|
|||
$rules[] = new PhabricatorYoutubeRemarkupRule();
|
||||
}
|
||||
|
||||
$rules[] = new PhabricatorIconRemarkupRule();
|
||||
$rules[] = new PhabricatorEmojiRemarkupRule();
|
||||
|
||||
$applications = PhabricatorApplication::getAllInstalledApplications();
|
||||
foreach ($applications as $application) {
|
||||
foreach ($application->getRemarkupRules() as $rule) {
|
||||
|
|
Loading…
Reference in a new issue