From 16431adc0ff42d1e802da97e39f5c8ba66ad9ed7 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Mon, 9 May 2011 20:34:16 +0200 Subject: [PATCH] Add ability to add a text at the end of the branches. Signed-off-by: Florent Bruneau --- banana/tree.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/banana/tree.inc.php b/banana/tree.inc.php index 98c66f4..0f66d67 100644 --- a/banana/tree.inc.php +++ b/banana/tree.inc.php @@ -124,6 +124,7 @@ class BananaTree $text = '
'; foreach ($this->data as &$line) { $text .= '
'; + unset($head); foreach ($line as &$item) { if ($item == ' ') { $text .= $t_e; @@ -142,9 +143,13 @@ class BananaTree if (Banana::$artid == $item) { $text .= ' checked="checked"'; } + $last_title = $head->subject; $text .= '/>'; } } + if (function_exists('hook_spoolTagBranch') && isset($head)) { + $text .= hook_spoolTagBranch($head); + } $text .= "
\n"; } $text .= '
'; -- 2.1.4