Permalink
Browse files

Fixed a bug in add_extension

--HG--
branch : trunk
  • Loading branch information...
mitsuhiko committed May 29, 2010
1 parent 78efe74 commit ec25a0c3bbbbecdcbd48b113c09164e7961422d6
Showing with 1 addition and 1 deletion.
  1. +1 −1 jinja2/environment.py
View
@@ -284,7 +284,7 @@ def add_extension(self, extension):
.. 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

0 comments on commit ec25a0c

Please sign in to comment.