1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

Use Remarkup document link

This commit is contained in:
vrana 2012-08-07 18:51:47 -07:00
parent 3fcb94a45c
commit 523cba5da4
2 changed files with 3 additions and 1 deletions

View file

@ -383,6 +383,8 @@ final class PhabricatorMarkupEngine {
}
}
$rules[] = new PhutilRemarkupRuleDocumentLink();
if ($options['fileproxy']) {
$rules[] = new PhabricatorRemarkupRuleProxyImage();
}

View file

@ -24,7 +24,7 @@ final class PhabricatorRemarkupRuleProxyImage
public function apply($text) {
$filetypes = '(?:\.jpe?g|.png|.gif)';
$filetypes = '\.(?:jpe?g|png|gif)';
$text = preg_replace_callback(
'@[<](\w{3,}://.+?'.$filetypes.')[>]@',