diff --git a/plugins/display/operating_systems.py b/plugins/display/operating_systems.py index 47ddd87..0b4324f 100644 --- a/plugins/display/operating_systems.py +++ b/plugins/display/operating_systems.py @@ -56,7 +56,7 @@ class IWLADisplayTopOperatingSystems(IPlugin): def load(self): self.icon_path = self.iwla.getConfValue('icon_path', '/') - self.create_families_pages = self.iwla.getConfValue('create_families_pages_page', True) + self.create_families_page = self.iwla.getConfValue('create_families_page_page', True) self.icon_names = {v:k for (k, v) in awstats_data.operating_systems_family.items()} return True @@ -69,7 +69,7 @@ class IWLADisplayTopOperatingSystems(IPlugin): operating_systems = sorted(operating_systems.items(), key=lambda t: t[1], reverse=True) # All in a page - if self.create_families_pages: + if self.create_families_page: title = createCurTitle(self.iwla, u'All Operating Systems') filename = 'operating_systems.html' path = self.iwla.getCurDisplayPath(filename) @@ -86,7 +86,7 @@ class IWLADisplayTopOperatingSystems(IPlugin): # Families in index title = self.iwla._(u'Operating Systems') - if self.create_families_pages: + if self.create_families_page: link = '%s' % (filename, self.iwla._(u'Details')) title = '%s - %s' % (title, link) @@ -97,4 +97,5 @@ class IWLADisplayTopOperatingSystems(IPlugin): for (family, entrance) in os_families: icon = '' % (self.icon_path, self.icon_names[family]) table.appendRow([icon, family, entrance]) + table.computeRatio(2) index.appendBlock(table)