trying to fix up pages in tags
darcs-hash:20080929230047-5ed1f-1fee58a5bb18c71de7abeef67d89b087d84cc853.gz
This commit is contained in:
parent
bf661a5e84
commit
d1660b3c4d
@ -160,6 +160,9 @@ class TagAction extends StreamAction {
|
|||||||
function show_notices($tag) {
|
function show_notices($tag) {
|
||||||
|
|
||||||
$cnt = 0;
|
$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);
|
$notice = Notice_tag::getStream($tag, (($page-1)*NOTICES_PER_PAGE), NOTICES_PER_PAGE + 1);
|
||||||
|
|
||||||
if ($notice) {
|
if ($notice) {
|
||||||
|
@ -42,7 +42,7 @@ class Notice_tag extends Memcached_DataObject
|
|||||||
'WHERE notice_tag.tag = "%s" ';
|
'WHERE notice_tag.tag = "%s" ';
|
||||||
|
|
||||||
return Notice::getStream(sprintf($qry, $tag),
|
return Notice::getStream(sprintf($qry, $tag),
|
||||||
'notice_tag:notice_stream:' . $tag,
|
'notice_tag:notice_stream:' . common_keyize($tag),
|
||||||
$offset, $limit);
|
$offset, $limit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user