Commit bdaf1b1d authored by Jérome Perrin's avatar Jérome Perrin Committed by Kazuhiko Shiozaki

ci_slideshow: set response content type explicitly

it would be good to rewrite this in a page template
parent 493196ac
......@@ -5,6 +5,9 @@ Presentation Layout ?portal_skin=CI_slideshow
"""
import re
container.REQUEST.RESPONSE.setHeader('content-type', 'text/html')
def getSlideList(content):
return re.findall(r'<section[^>]*?>(.*?)</section>', content, re.S)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment