mercurial/hgweb/hgwebdir_mod.py
changeset 34515 8afc25e7effc
parent 34486 a57c938e7ac8
child 34587 b50c036494dc
--- a/mercurial/hgweb/hgwebdir_mod.py	Thu Oct 05 14:27:21 2017 -0400
+++ b/mercurial/hgweb/hgwebdir_mod.py	Thu Oct 05 14:29:13 2017 -0400
@@ -503,12 +503,8 @@
             url += '/'
 
         vars = {}
-        styles = (
-            req.form.get('style', [None])[0],
-            config('web', 'style'),
-            'paper'
-        )
-        style, mapfile = templater.stylemap(styles, self.templatepath)
+        styles, (style, mapfile) = hgweb_mod.getstyle(req, config,
+                                                      self.templatepath)
         if style == styles[0]:
             vars['style'] = style