exit(1);
}
-define('TAGS_PER_SECTION', 20);
+define('TAGS_PER_SECTION', 10);
/**
* Base class for sections
{
$tags = $this->getTags();
- if (!$tags) {
+ if (!$tags instanceof Notice_tag) {
// TRANS: Content displayed in a tag cloud section if there are no tags.
$this->out->element('p', null, _m('NOTAGS','None'));
return false;
$sum = 0;
while ($tags->fetch() && ++$cnt <= TAGS_PER_SECTION) {
- $tw[$tags->tag] = $tags->weight;
- $sum += $tags->weight;
+ if ($tags->isCurrentProfileInScope()) {
+ $tw[$tags->tag] = $tags->weight;
+ $sum += $tags->weight;
+ }
}
if ($cnt == 0) {