Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webcommands.py @ 22634:e48a5d3996c2
templater: introduce templatepaths for getting paths searched for templates
Avoid function with different return types depending on parameters.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Sun, 28 Sep 2014 16:57:37 +0200 |
parents | b3e51675f98e |
children | a0ccb66f344d |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Sun Sep 28 16:57:06 2014 +0200 +++ b/mercurial/hgweb/webcommands.py Sun Sep 28 16:57:37 2014 +0200 @@ -933,7 +933,7 @@ # readable by the user running the CGI script static = web.config("web", "static", None, untrusted=False) if not static: - tp = web.templatepath or templater.templatepath() + tp = web.templatepath or templater.templatepaths() if isinstance(tp, str): tp = [tp] static = [os.path.join(p, 'static') for p in tp]