Fixed wrong (copy&paste) usage of tmpl instead of self.t in hgweb.
authorThomas Arendsen Hein <thomas@intevation.de>
Thu, 23 Feb 2006 12:35:15 +0100
changeset 1796 a373881fdf2a
parent 1795 36e19e3da12d
child 1797 42f75cd04bf4
Fixed wrong (copy&paste) usage of tmpl instead of self.t in hgweb.
mercurial/hgweb.py
--- a/mercurial/hgweb.py	Thu Feb 23 12:02:39 2006 +0100
+++ b/mercurial/hgweb.py	Thu Feb 23 12:35:15 2006 +0100
@@ -1016,7 +1016,7 @@
         elif req.form['cmd'][0] == 'static':
             fname = req.form['file'][0]
             req.write(staticfile(static, fname)
-                      or tmpl("error", error="%r not found" % fname))
+                      or self.t("error", error="%r not found" % fname))
 
         else:
             req.write(self.t("error"))