added the #I shortcut expression to an issue

This commit is contained in:
hyung-hwan 2014-05-22 04:31:59 +00:00
parent 024952312c
commit 34986f34fe

View File

@ -14,6 +14,14 @@ class WikiHelper
$link = "code/revision/{$projectid}/2e/{$matches[1]}";
return $link;
}
else if (preg_match ('/^#I([[:digit:]]+)$/', $name, $matches) == 1)
{
// #I123 -> translate it to issue number.
$num_hex = $converter->AsciiToHex ($matches[1]);
$link = "issue/show/{$projectid}/{$num_hex}";
return $link;
}
if ($this->_is_reserved ($name, TRUE))
{
$ex0 = $this->_trans_reserved ($name);