Permalink
Browse files

- Reverted the template injection fix - it's actually needed. Will ne…

…ed to rewrite / refactor later on.
  • Loading branch information...
1 parent 9c46f78 commit 7a487f00f1057b4c55149426e32f9b9a4a8900b2 @chrisglass chrisglass committed Dec 17, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 cms/utils/__init__.py
View
@@ -44,6 +44,8 @@ def get_template_from_request(request, obj=None, no_current_page=False):
template = None
if len(settings.CMS_TEMPLATES) == 1:
return settings.CMS_TEMPLATES[0][0]
+ if "template" in request.REQUEST:
+ template = request.REQUEST['template']
if not template and obj is not None:
template = obj.get_template()
if not template and not no_current_page and hasattr(request, "current_page"):

0 comments on commit 7a487f0

Please sign in to comment.