com web/bugs: - Lets create link to bug when using "duplicated of #NNNN" phrase: include/functions.php
| From: | Felipe Pena | Date: | Thu, 10 May 2012 11:33:38 +0000 |
| Subject: | com web/bugs: - Lets create link to bug when using "duplicated of #NNNN" phrase: include/functions.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-13506@lists.php.net to get a copy of this message | ||
Commit: 892c6d8c37c12671a4649aefc3961827b4d16044
Author: Felipe Pena <felipensp@gmail.com> Thu, 10 May 2012 08:33:38 -0300
Parents: d0727c2ae5934b7dabf8159f99926eeb0d94b98d
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=892c6d8c37c12671a4649aefc3961827b4d16044
Log:
- Lets create link to bug when using "duplicated of #NNNN" phrase
Changed paths:
M include/functions.php
Diff:
diff --git a/include/functions.php b/include/functions.php
index 1f9beda..0bc1cab 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -1852,7 +1852,7 @@ function make_mailto_link($email, $linktext = '', $extras =
'')
function make_ticket_links($text)
{
return preg_replace(
- '/(?<![>a-z])(bug(?:fix)?|feat(?:ure)?|doc(?:umentation)?|req(?:uest)?)\s+#?([0-9]+)/i',
+ '/(?<![>a-z])(bug(?:fix)?|feat(?:ure)?|doc(?:umentation)?|req(?:uest)?|duplicated
of)\s+#?([0-9]+)/i',
"<a href='bug.php?id=\\2'>\\0</a>",
$text
);