cvs: pearweb /include pear-format-html.php

From: Date: Sat, 05 Apr 2008 22:59:24 +0000
Subject: cvs: pearweb /include pear-format-html.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-7438@lists.php.net to get a copy of this message
dufuz Sat Apr 5 22:59:24 2008 UTC Modified files: /pearweb/include pear-format-html.php Log: add a wiki like patch url linking, this will most likely be only used by the auto add comment on patch addition system http://cvs.php.net/viewvc.cgi/pearweb/include/pear-format-html.php?r1=1.267&r2=1.268&diff_format=u Index: pearweb/include/pear-format-html.php diff -u pearweb/include/pear-format-html.php:1.267 pearweb/include/pear-format-html.php:1.268 --- pearweb/include/pear-format-html.php:1.267 Sat Apr 5 22:11:50 2008 +++ pearweb/include/pear-format-html.php Sat Apr 5 22:59:24 2008 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: pear-format-html.php,v 1.267 2008/04/05 22:11:50 dufuz Exp $ + $Id: pear-format-html.php,v 1.268 2008/04/05 22:59:24 dufuz Exp $ */ PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'error_handler'); @@ -848,6 +848,9 @@ function make_ticket_links($text) { global $dbh; + $text = preg_replace('/#patch bug:([0-9]+);patch:([0-9a-z_\-\.]+);revision:([0-9]+);/i', + '<a href="patch-display.php?bug_id=\\1&amp;patch=\\2&amp;revision=\\3">patch \\2</a>', + $text); $text = preg_replace('/(?<=php)\s*(bug(?:fix)?|feat(?:ure)?|doc(?:umentation)?|req(?:uest)?)\s+#([0-9]+)/i', ' <a href="http://bugs.php.net/\\2">\\1 \\2</a>', $text); @@ -861,7 +864,7 @@ foreach ($res as $k => $b) { $t = $matches[0][$k]; $title = $b['package_name'] . ': ' . $b['sdesc']; - $link = make_link('/bugs/' . $matches[2][$k], $t, null, null, $title); + $link = make_link($matches[2][$k], $t, null, null, $title); $text = str_replace($t, $link, $text); } }

« previous php.pear.core (#7438) next »