Added link to issues and commit in the source tree.

This commit is contained in:
Loic d'Anterroches
2008-11-17 14:09:00 +01:00
parent 809967f5d7
commit 8e093bc7ee
3 changed files with 4 additions and 4 deletions

View File

@@ -32,12 +32,12 @@ class IDF_Template_IssueComment extends Pluf_Template_Tag
private $request = null;
private $scm = null;
function start($text, $request, $echo=true)
function start($text, $request, $echo=true, $wordwrap=true)
{
$this->project = $request->project;
$this->request = $request;
$this->scm = IDF_Scm::get($request);
$text = wordwrap($text, 69, "\n", true);
if ($wordwrap) $text = wordwrap($text, 69, "\n", true);
$text = Pluf_esc($text);
$text = ereg_replace('[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]',
'<a href="\\0" rel="nofollow">\\0</a>',