Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgwebdir_mod.py @ 39809:536f22d6c2c5
hgweb: register web.static to the config table
Otherwise we would got a develwarn.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 23 Sep 2018 16:15:48 +0900 |
parents | 4167437a45dd |
children | 2cd5f1fac788 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py Sun Sep 23 17:01:26 2018 +0900 +++ b/mercurial/hgweb/hgwebdir_mod.py Sun Sep 23 16:15:48 2018 +0900 @@ -383,8 +383,7 @@ fname = virtual[7:] else: fname = req.qsparams['static'] - static = self.ui.config("web", "static", None, - untrusted=False) + static = self.ui.config("web", "static", untrusted=False) if not static: tp = self.templatepath or templater.templatepaths() if isinstance(tp, str):