From: Armin Ronacher Date: Sat, 29 May 2010 20:01:59 +0000 (+0200) Subject: Fixed a bug in add_extension X-Git-Tag: 2.5~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ec25a0c3bbbbecdcbd48b113c09164e7961422d6;p=jinja2.git Fixed a bug in add_extension --HG-- branch : trunk --- diff --git a/jinja2/environment.py b/jinja2/environment.py index c8abd51..a94bc6e 100644 --- a/jinja2/environment.py +++ b/jinja2/environment.py @@ -284,7 +284,7 @@ class Environment(object): .. versionadded:: 2.5 """ - load_extensions(self, [extension]) + self.extensions.update(load_extensions(self, [extension])) def extend(self, **attributes): """Add the items to the instance of the environment if they do not exist