Fixed issue 12, better regular expressions to link issues.

The bug was due to a bad initialization of the git repository path in
the issue comment parser. Time to make more init tests!
This commit is contained in:
Loic d'Anterroches 2008-08-05 11:44:04 +02:00
parent 0a868a76ba
commit 9dedea0f9d

View File

@ -34,7 +34,7 @@ class IDF_Template_IssueComment extends Pluf_Template_Tag
function start($text, $project) function start($text, $project)
{ {
$this->project = $project; $this->project = $project;
$this->git = new IDF_Git(Pluf::f('git_repository')); $this->git = new IDF_Git($this->project->getGitRepository());
$text = wordwrap($text, 69, "\n", true); $text = wordwrap($text, 69, "\n", true);
$text = Pluf_esc($text); $text = Pluf_esc($text);
$text = ereg_replace('[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]', $text = ereg_replace('[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]',