1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 09:18:48 +02:00
This commit is contained in:
leon 2011-04-20 17:08:29 -07:00
commit c5157e821b

View file

@ -32,13 +32,12 @@ class PhabricatorRemarkupRuleImageMacro
$this->images[$row->getName()] = $row->getFilePHID();
}
$this->images[self::RANDOM_IMAGE_NAME] = '';
$this->hash = 0;
}
public function apply($text) {
$this->hash = 0;
return preg_replace_callback(
'@\b([a-zA-Z0-9_\-]+)\b@U',
'@\b([a-zA-Z0-9_\-]+)\b@',
array($this, 'markupImageMacro'),
$text);
}