Ticket #388: templates.patch
| File templates.patch, 0.8 kB (added by joerosa, 5 months ago) |
|---|
-
lib/templates.php
old new 1064 1064 } else { 1065 1065 $vars[1] = "20"; 1066 1066 } 1067 if ($tags = get_records_sql("SELECT tag, count(ident) as numtags FROM `".$CFG->prefix."tags` WHERE access = 'PUBLIC' and tag!='' group by tag having numtags > 1 order by ident desc limit" . $vars[1])) {1067 if ($tags = get_records_sql("SELECT tag, count(ident) AS numtags, MAX(ref) AS ref FROM `".$CFG->prefix."tags` WHERE access = 'PUBLIC' AND tag!='' AND tagtype = 'weblog' GROUP BY tag HAVING numtags > 1 ORDER BY ref DESC LIMIT " . $vars[1])) { 1068 1068 $max = 0; 1069 1069 foreach($tags as $tag) { 1070 1070 if ($tag->numtags > $max) {
