- Bugfix: the filter module generated an empty <ul></ul> (= invalid XHTML) when no filter tips are present.
parent
48bcc19ca2
commit
a56f9b5c9f
|
@ -734,13 +734,15 @@ function theme_filter_tips($tips, $long = false, $extra = '') {
|
||||||
$output .= '<strong>'. $name .'</strong>:<br />';
|
$output .= '<strong>'. $name .'</strong>:<br />';
|
||||||
}
|
}
|
||||||
|
|
||||||
$output .= '<ul class="tips">';
|
$tips = '';
|
||||||
|
|
||||||
foreach ($tiplist as $tip) {
|
foreach ($tiplist as $tip) {
|
||||||
$output .= '<li'. ($long ? ' id="'. $tip['id'] .'">' : '>') . $tip['tip'] . '</li>';
|
$tips .= '<li'. ($long ? ' id="'. $tip['id'] .'">' : '>') . $tip['tip'] . '</li>';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($tips) {
|
||||||
|
$output .= "<ul class=\"tips\">$tips</ul>";
|
||||||
}
|
}
|
||||||
|
|
||||||
$output .= '</ul>';
|
|
||||||
if ($multiple) {
|
if ($multiple) {
|
||||||
$output .= '</li>';
|
$output .= '</li>';
|
||||||
}
|
}
|
||||||
|
|
|
@ -734,13 +734,15 @@ function theme_filter_tips($tips, $long = false, $extra = '') {
|
||||||
$output .= '<strong>'. $name .'</strong>:<br />';
|
$output .= '<strong>'. $name .'</strong>:<br />';
|
||||||
}
|
}
|
||||||
|
|
||||||
$output .= '<ul class="tips">';
|
$tips = '';
|
||||||
|
|
||||||
foreach ($tiplist as $tip) {
|
foreach ($tiplist as $tip) {
|
||||||
$output .= '<li'. ($long ? ' id="'. $tip['id'] .'">' : '>') . $tip['tip'] . '</li>';
|
$tips .= '<li'. ($long ? ' id="'. $tip['id'] .'">' : '>') . $tip['tip'] . '</li>';
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($tips) {
|
||||||
|
$output .= "<ul class=\"tips\">$tips</ul>";
|
||||||
}
|
}
|
||||||
|
|
||||||
$output .= '</ul>';
|
|
||||||
if ($multiple) {
|
if ($multiple) {
|
||||||
$output .= '</li>';
|
$output .= '</li>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue