diff --git a/lib/request/templates.py b/lib/request/templates.py index 0049173bf..789242f45 100644 --- a/lib/request/templates.py +++ b/lib/request/templates.py @@ -12,8 +12,11 @@ from lib.request.connect import Connect as Request def getPageTemplate(payload, place): retVal = kb.originalPage + if payload and place: if (payload, place) not in kb.pageTemplates: kb.pageTemplates[(payload, place)], _ = Request.queryPage(payload, place, content=True) + retVal = kb.pageTemplates[(payload, place)] + return retVal