From 34986f34fe877ce94b40b186ddb4b97f8ce5a13b Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Thu, 22 May 2014 04:31:59 +0000 Subject: [PATCH] added the #I shortcut expression to an issue --- codepot/src/codepot/libraries/wikihelper.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/codepot/src/codepot/libraries/wikihelper.php b/codepot/src/codepot/libraries/wikihelper.php index 65efdfe5..5e1ce677 100644 --- a/codepot/src/codepot/libraries/wikihelper.php +++ b/codepot/src/codepot/libraries/wikihelper.php @@ -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);