Index: trunk/tools/bugzilla/bugzilla-4.0/extensions/Wikimedia/Extension.pm |
— | — | @@ -53,11 +53,7 @@ |
54 | 54 | match => qr{\bgerrit(\ change(set)?)?\ ?\#?(\d+)}i, |
55 | 55 | replace => \&_createGerritLink |
56 | 56 | }; |
57 | | - #~\br(\d+)\b |
58 | | - # "<a href=\"https://www.mediawiki.org" . |
59 | | - # "/wiki/Special:Code/MediaWiki/$1\" " . |
60 | | - # "title=\"revision $1 in SVN\">r$1</a>" |
61 | | - |
| 57 | + |
62 | 58 | push( @$regexes, $replacerWP ); |
63 | 59 | push( @$regexes, $replacerCR ); |
64 | 60 | push( @$regexes, $replacerRT ); |
— | — | @@ -69,7 +65,7 @@ |
70 | 66 | my $tmp = html_quote($match_str); |
71 | 67 | my $wikipedia_link = "[[<a href='https://en.wikipedia.org/w/index.php?title=Special:Search&go=Go&search=$tmp'>$tmp</a>]]"; |
72 | 68 | return $wikipedia_link; |
73 | | -}; |
| 69 | +}; |
74 | 70 | |
75 | 71 | sub _createCodeReviewLink { |
76 | 72 | my $rev_link = "<a href=\"https://www.mediawiki.org/wiki/Special:Code/MediaWiki/$1\" title=\"revision $1 in SVN\">r$1</a>"; |