exit(1);
}
-define('TAGS_PER_SECTION', 20);
+define('TAGS_PER_SECTION', 10);
/**
* Base class for sections
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
-
class TagCloudSection extends Section
{
function showContent()
$tags = $this->getTags();
if (!$tags) {
- $this->out->element('p', null, _('None'));
+ // TRANS: Content displayed in a tag cloud section if there are no tags.
+ $this->out->element('p', null, _m('NOTAGS','None'));
return false;
}
}
if ($cnt == 0) {
- $this->out->element('p', null, _('(None)'));
+ // TRANS: Content displayed in a tag cloud section if there are no tags.
+ $this->out->element('p', null, _m('NOTAGS','None'));
return false;
}
function tagUrl($tag)
{
- if ('showstream' === $this->out->trimmed('action')) {
- return common_local_url('showstream', array('nickname' => $this->out->profile->nickname, 'tag' => $tag));
- } else {
- return common_local_url('tag', array('tag' => $tag));
+ if ($this->out instanceof ShowstreamAction) {
+ return common_local_url('showstream', array('nickname' => $this->out->getTarget()->getNickname(), 'tag' => $tag));
}
+ return common_local_url('tag', array('tag' => $tag));
}
function divId()