summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-09-29 19:00:47 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-09-29 19:00:47 -0400
commitd1660b3c4d50973bb578912880af2e7cca78ee93 (patch)
tree4d8f9a0e01cdecd7662cff08ad4ede6ef584f2dc
parentbf661a5e840f0910cd999b9cc4c0a25036e3ee8b (diff)
trying to fix up pages in tags
darcs-hash:20080929230047-5ed1f-1fee58a5bb18c71de7abeef67d89b087d84cc853.gz
-rw-r--r--actions/tag.php3
-rw-r--r--classes/Notice_tag.php2
2 files changed, 4 insertions, 1 deletions
diff --git a/actions/tag.php b/actions/tag.php
index 177aee603..6796cd34f 100644
--- a/actions/tag.php
+++ b/actions/tag.php
@@ -160,6 +160,9 @@ class TagAction extends StreamAction {
function show_notices($tag) {
$cnt = 0;
+
+ $page = ($this->arg('page')) ? ($this->arg('page')+0) : 1;
+
$notice = Notice_tag::getStream($tag, (($page-1)*NOTICES_PER_PAGE), NOTICES_PER_PAGE + 1);
if ($notice) {
diff --git a/classes/Notice_tag.php b/classes/Notice_tag.php
index 5ab6e332a..5b75ff13f 100644
--- a/classes/Notice_tag.php
+++ b/classes/Notice_tag.php
@@ -42,7 +42,7 @@ class Notice_tag extends Memcached_DataObject
'WHERE notice_tag.tag = "%s" ';
return Notice::getStream(sprintf($qry, $tag),
- 'notice_tag:notice_stream:' . $tag,
+ 'notice_tag:notice_stream:' . common_keyize($tag),
$offset, $limit);
}