Recent tags won't work on certain locales

Recent tags won't work on certain locales

Issue ID:661
Issue Category:bug
Component:core
Priority:normal
Status:fixed
Assigned:evan
Version:0.5
Milestone:0.6

Some locales use comma as decimal sign. This causes SQL error in tag query. In this line (actions/tag.php):

{{{
$tags->selectAdd(sprintf('sum(exp(-(now() - notice.created)/%f)) as weight', common_config('tag', 'dropoff')));
}}}

%f should be replaced with %s, since the whole parameter is a string anyways

Legacy Data

This issue was migrated from another tracking system. The legacy data at time of import is provided below as a reference.

Ticket ID: 
661
Reported by: 
js
Owner: 
evan
Status: 
closed
Resolution: 
closed
Type: 
bug
Component: 
core
Priority: 
3
Version: 
0.5
Milestone: 
0.6

Updates

#1

Fixed.

Login or Register to modify this issue, or to receive updates by email.

You can also subscribe to the RSS feed for updates to this issue.