Skip to content

Commit

Permalink
fixed exception in case html templates are not present in a concrete …
Browse files Browse the repository at this point in the history
…syntax
  • Loading branch information
mthiede committed Jun 13, 2010
1 parent 7d1ac8f commit 3f22c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/concrete/server.rb
Expand Up @@ -27,7 +27,7 @@ def start
def handleRequest(req, res)
if req.path == "/"
editorHtml = File.read(@htmlRoot+"/editor.html")
editorHtml.sub!(/<!--\s+html templates\s+-->/, @syntaxProvider.selectedSyntax.htmlTemplates) if @syntaxProvider.selectedSyntax
editorHtml.sub!(/<!--\s+html templates\s+-->/, @syntaxProvider.selectedSyntax.htmlTemplates) if @syntaxProvider.andand.selectedSyntax.andand.htmlTemplates
res.body = editorHtml
elsif req.path =~ /^\/html\/(.*)/
File.open(@htmlRoot+"/"+$1, "rb") do |f|
Expand Down

0 comments on commit 3f22c58

Please sign in to comment.