From 411db90e25a4ae2aa77a867da943d14769b405a4 Mon Sep 17 00:00:00 2001 From: CiaranG Date: Wed, 24 Sep 2008 05:20:31 -0400 Subject: Fix problem with tags in different locales (Ticket #679) darcs-hash:20080924092031-f6e2c-8def504406ee1a13273bb67faafe3a3327ae4a44.gz --- actions/tag.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actions') diff --git a/actions/tag.php b/actions/tag.php index 6796cd34f..75bf6c8bf 100644 --- a/actions/tag.php +++ b/actions/tag.php @@ -98,9 +98,9 @@ class TagAction extends StreamAction { #Add the aggregated columns... $tags->selectAdd('max(notice_id) as last_notice_id'); if(common_config('db','type')=='pgsql') { - $calc='sum(exp(-extract(epoch from (now()-created))/%f)) as weight'; + $calc='sum(exp(-extract(epoch from (now()-created))/%s)) as weight'; } else { - $calc='sum(exp(-(now() - created)/%f)) as weight'; + $calc='sum(exp(-(now() - created)/%s)) as weight'; } $tags->selectAdd(sprintf($calc, common_config('tag', 'dropoff'))); $tags->groupBy('tag'); -- cgit v1.2.3-54-g00ecf