Fix typo in public tag cloud query setup which caused the cutoff to get skipped.

This commit is contained in:
Brion Vibber 2010-03-19 12:50:34 -07:00
parent 5e54e7b55d
commit 2097e6a293

View File

@ -109,7 +109,7 @@ class PublictagcloudAction extends Action
$cutoff = sprintf("notice_tag.created > '%s'", $cutoff = sprintf("notice_tag.created > '%s'",
common_sql_date(time() - common_config('tag', 'cutoff'))); common_sql_date(time() - common_config('tag', 'cutoff')));
$tags->selectAdd($calc . ' as weight'); $tags->selectAdd($calc . ' as weight');
$tags->addWhere($cutoff); $tags->whereAdd($cutoff);
$tags->groupBy('tag'); $tags->groupBy('tag');
$tags->orderBy('weight DESC'); $tags->orderBy('weight DESC');