Content server: Fix custom icons for top level categories incorrect. Fixes #1095016 (User category icon mixup on webserver)

This commit is contained in:
Kovid Goyal 2013-01-18 08:44:16 +05:30
parent df1efd3fe8
commit 705bea4e19

View File

@ -373,7 +373,7 @@ class BrowseServer(object):
continue
# get the icon files
if category in self.icon_map:
icon = '_'+quote(self.icon_map[category])
icon = '_'+quote(self.icon_map[category.partition('.')[0]])
elif category in category_icon_map:
icon = category_icon_map[category]
elif meta['is_custom']: