View | Details | Raw Unified | Return to issue 12345
Collapse All | Expand All

(-)bugzilla.org/Bugzilla/Template.pm (+11 lines)
Lines 284-289 Link Here
284
                              "<a href=\"$current_bugurl#c$4\">$1</a>")
284
                              "<a href=\"$current_bugurl#c$4\">$1</a>")
285
              ~egox;
285
              ~egox;
286
286
287
    my $issue_re = qr/\Qissue\E\s*\#?\s*(\d+)/i;
288
    $text =~ s~\b($issue_re)
289
              ~ get_bug_link($2,$1)
290
              ~egmx;
291
287
    # Old duplicate markers. These don't use $bug_word because they are old
292
    # Old duplicate markers. These don't use $bug_word because they are old
288
    # and were never customizable.
293
    # and were never customizable.
289
    $text =~ s~(?<=^\*\*\*\ This\ bug\ has\ been\ marked\ as\ a\ duplicate\ of\ )
294
    $text =~ s~(?<=^\*\*\*\ This\ bug\ has\ been\ marked\ as\ a\ duplicate\ of\ )
Lines 292-297 Link Here
292
              ~get_bug_link($1, $1)
297
              ~get_bug_link($1, $1)
293
              ~egmx;
298
              ~egmx;
294
299
300
    $text =~ s~(?<=^\*\*\*\ This\ issue\ has\ been\ marked\ as\ a\ duplicate\ of\ )
301
               (\d+)
302
               (?=\ \*\*\*\Z)
303
              ~get_bug_link($1, $1)
304
              ~egmx;
305
295
    # Now remove the encoding hacks
306
    # Now remove the encoding hacks
296
    $text =~ s/\0\0(\d+)\0\0/$things[$1]/eg;
307
    $text =~ s/\0\0(\d+)\0\0/$things[$1]/eg;
297
    $text =~ s/$chr1\0/\0/g;
308
    $text =~ s/$chr1\0/\0/g;

Return to issue 12345