]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
trying to fix up pages in tags
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 29 Sep 2008 23:00:47 +0000 (19:00 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 29 Sep 2008 23:00:47 +0000 (19:00 -0400)
darcs-hash:20080929230047-5ed1f-1fee58a5bb18c71de7abeef67d89b087d84cc853.gz

actions/tag.php
classes/Notice_tag.php

index 177aee603a785d3f13c154aaa61e51c99b30ccce..6796cd34f0e84adceee625f4bb4184fe7edfd95e 100644 (file)
@@ -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) {
index 5ab6e332ab21d18986f6e5c431c5b9a2699b9176..5b75ff13feb05a22bf48596ac5d73fdaf69f1759 100644 (file)
@@ -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);
        }