mercurial/hgweb/hgwebdir_mod.py
changeset 45378 dc9fe90bdbd5
parent 45318 1a4f925f72c3
child 46819 d4ba4d51f85f
--- a/mercurial/hgweb/hgwebdir_mod.py	Mon Aug 03 22:40:05 2020 -0700
+++ b/mercurial/hgweb/hgwebdir_mod.py	Sat Aug 22 16:03:44 2020 -0700
@@ -413,12 +413,7 @@
                 else:
                     fname = req.qsparams[b'static']
                 static = self.ui.config(b"web", b"static", untrusted=False)
-                if not static:
-                    tp = self.templatepath or templater.templatedir()
-                    if tp is not None:
-                        static = os.path.join(tp, b'static')
-
-                staticfile(static, fname, res)
+                staticfile(self.templatepath, static, fname, res)
                 return res.sendresponse()
 
             # top-level index