summaryrefslogtreecommitdiff
path: root/web/lib
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2012-10-15 10:28:40 +0200
committerJochen Topf <jochen@topf.org>2012-10-15 10:28:40 +0200
commit164c30e5f1930af722a2eb1a0ebac944989cdaae (patch)
tree9da83c8ea37a59709d1b74f93565c4366e7b76d5 /web/lib
parent47eecdd35cac768566fc8a79afe7760bbf99b75a (diff)
downloadtaginfo-164c30e5f1930af722a2eb1a0ebac944989cdaae.tar
taginfo-164c30e5f1930af722a2eb1a0ebac944989cdaae.tar.gz
Fix https://trac.openstreetmap.org/ticket/4623
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/ui/keys_tags.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/ui/keys_tags.rb b/web/lib/ui/keys_tags.rb
index c49b3d5..94585fd 100644
--- a/web/lib/ui/keys_tags.rb
+++ b/web/lib/ui/keys_tags.rb
@@ -106,7 +106,7 @@ class Taginfo < Sinatra::Base
if @wiki_count == 0
@wiki_count_key = @db.count('wiki.wikipages').condition('key=?', @key).condition('value IS NULL').get_first_value().to_i
end
- @count_all = @db.select('SELECT count_all FROM db.tags').condition('key = ? AND value = ?', @key, @value).get_first_value().to_i
+ @count_all = @db.select("SELECT count_#{@filter_type} FROM db.tags").condition('key = ? AND value = ?', @key, @value).get_first_value().to_i
@desc = h(@db.select("SELECT description FROM wiki.wikipages WHERE lang=? AND key=? AND value=?", r18n.locale.code, @key, @value).get_first_value())
@desc = h(@db.select("SELECT description FROM wiki.wikipages WHERE lang='en' AND key=? AND value=?", @key, @value).get_first_value()) if @desc == ''