Commit a56f9b5c authored by Dries's avatar Dries

- Bugfix: the filter module generated an empty <ul></ul> (= invalid XHTML)...

- Bugfix: the filter module generated an empty <ul></ul> (= invalid XHTML) when no filter tips are present.
parent 48bcc19c
......@@ -734,13 +734,15 @@ function theme_filter_tips($tips, $long = false, $extra = '') {
$output .= '<strong>'. $name .'</strong>:<br />';
}
$output .= '<ul class="tips">';
$tips = '';
foreach ($tiplist as $tip) {
$output .= '<li'. ($long ? ' id="'. $tip['id'] .'">' : '>') . $tip['tip'] . '</li>';
$tips .= '<li'. ($long ? ' id="'. $tip['id'] .'">' : '>') . $tip['tip'] . '</li>';
}
$output .= '</ul>';
if ($tips) {
$output .= "<ul class=\"tips\">$tips</ul>";
}
if ($multiple) {
$output .= '</li>';
}
......
......@@ -734,13 +734,15 @@ function theme_filter_tips($tips, $long = false, $extra = '') {
$output .= '<strong>'. $name .'</strong>:<br />';
}
$output .= '<ul class="tips">';
$tips = '';
foreach ($tiplist as $tip) {
$output .= '<li'. ($long ? ' id="'. $tip['id'] .'">' : '>') . $tip['tip'] . '</li>';
$tips .= '<li'. ($long ? ' id="'. $tip['id'] .'">' : '>') . $tip['tip'] . '</li>';
}
$output .= '</ul>';
if ($tips) {
$output .= "<ul class=\"tips\">$tips</ul>";
}
if ($multiple) {
$output .= '</li>';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment