Show More
@@ -184,7 +184,13 b' class hgwebdir(object):' | |||||
184 | fname = virtual[7:] |
|
184 | fname = virtual[7:] | |
185 | else: |
|
185 | else: | |
186 | fname = req.form['static'][0] |
|
186 | fname = req.form['static'][0] | |
187 | static = templater.templatepath('static') |
|
187 | static = self.ui.config("web", "static", None, | |
|
188 | untrusted=False) | |||
|
189 | if not static: | |||
|
190 | tp = self.templatepath or templater.templatepath() | |||
|
191 | if isinstance(tp, str): | |||
|
192 | tp = [tp] | |||
|
193 | static = [os.path.join(p, 'static') for p in tp] | |||
188 | return (staticfile(static, fname, req),) |
|
194 | return (staticfile(static, fname, req),) | |
189 |
|
195 | |||
190 | # top-level index |
|
196 | # top-level index |
General Comments 0
You need to be logged in to leave comments.
Login now