Fixed a bug in add_extension
authorArmin Ronacher <armin.ronacher@active-4.com>
Sat, 29 May 2010 20:01:59 +0000 (22:01 +0200)
committerArmin Ronacher <armin.ronacher@active-4.com>
Sat, 29 May 2010 20:01:59 +0000 (22:01 +0200)
--HG--
branch : trunk

jinja2/environment.py

index c8abd51f8fd21ae7e562565a8ec740ae912c0678..a94bc6eaedccc1947c2e81d16b897b53340dd5cc 100644 (file)
@@ -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