diff options
-rw-r--r-- | web/lib/ui/relation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/ui/relation.rb b/web/lib/ui/relation.rb index a8cfa43..e3bffa7 100644 --- a/web/lib/ui/relation.rb +++ b/web/lib/ui/relation.rb @@ -14,7 +14,7 @@ class Taginfo < Sinatra::Base section :relations @wiki_count = @db.count('wiki.relation_pages').condition('rtype=?', @rtype).get_first_value().to_i - @count_all_values = @db.select("SELECT count_relations FROM db.keys").condition('key = ?', @rtype).get_first_value().to_i + @count_all_values = @db.select("SELECT count FROM db.relation_types").condition('rtype = ?', @rtype).get_first_value().to_i @desc = h(@db.select("SELECT description FROM wiki.relation_pages WHERE lang=? AND rtype=?", r18n.locale.code, @rtype).get_first_value()) @desc = h(@db.select("SELECT description FROM wiki.relation_pages WHERE lang='en' AND rtype=?", @rtype).get_first_value()) if @desc == '' |