summaryrefslogtreecommitdiff
path: root/actions/tag.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/tag.php')
-rw-r--r--actions/tag.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/actions/tag.php b/actions/tag.php
index 231f2c299..583879f9c 100644
--- a/actions/tag.php
+++ b/actions/tag.php
@@ -33,7 +33,9 @@ class TagAction extends Action
}
if ($this->tag != $taginput) {
- common_redirect(common_local_url('tag', array('tag' => $this->tag)));
+ common_redirect(common_local_url('tag', array('tag' => $this->tag)),
+ 301);
+ return false;
}
$this->page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
@@ -43,6 +45,13 @@ class TagAction extends Action
return true;
}
+ function showSections()
+ {
+ $pop = new PopularNoticeSection($this);
+ $pop->show();
+ }
+
+
function title()
{
if ($this->page == 1) {
@@ -84,4 +93,9 @@ class TagAction extends Action
$this->pagination($this->page > 1, $cnt > NOTICES_PER_PAGE,
$this->page, 'tag', array('tag' => $this->tag));
}
+
+ function isReadOnly()
+ {
+ return true;
+ }
}