Extra-switch fixes
Wrong variable name, and don't do the math unless we have to. Fixed the diplayed number being wrong. Also fixed a corner case where number of tags in the cloud equals number to display. Would display "[show 0 more tags]".
This commit is contained in:
parent
fa1fb45c1e
commit
8732f1a9ef
@ -133,8 +133,8 @@ class TagEditCloud extends Extension {
|
||||
|
||||
$html .= "<div id='tagcloud_unset'>$cloud</div>";
|
||||
|
||||
$rem = count($tag_data) - $def_count;
|
||||
if($sort_method != 'a' && $counter >= $defcount) {
|
||||
if($sort_method != 'a' && $counter > $def_count) {
|
||||
$rem = $counter - $def_count;
|
||||
$html .= "</div><br>[<span onclick='tageditcloud_toggle_extra(this);' style='color: #0000EF; font-weight:bold;'>show $rem more tags</span>]";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user