diff options
author | Benjamin Kiessling <mittagessen@l.unchti.me> | 2012-01-23 15:38:57 +0100 |
---|---|---|
committer | Benjamin Kiessling <mittagessen@l.unchti.me> | 2012-01-23 15:38:57 +0100 |
commit | 623d5ec42150b761cb7b3b56c7b7b9eaaf5c1e23 (patch) | |
tree | c0a7dbed8e777841d31e10e9ef861d51db01f036 /frontend.js | |
parent | d09390b08727af716fbe99c3639381ae432e5481 (diff) |
More unambiguous names in configuration
Diffstat (limited to 'frontend.js')
-rw-r--r-- | frontend.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend.js b/frontend.js index 30b5457..8c3d4d6 100644 --- a/frontend.js +++ b/frontend.js @@ -14,7 +14,7 @@ exports.start = function(config) { slideset = req.params.id; model.getSlides(slideset, function(err, slides) { if(err) { throw err; } - fs.readFile(path.join(__dirname, config.dir, slides['template']) , function(err,data) { + fs.readFile(path.join(__dirname, config.rootDir, slides['template']) , function(err,data) { if(err) { res.end(body); } var body = data.toString(); var slideStr = ''; @@ -25,10 +25,10 @@ exports.start = function(config) { slideStr = slideStr +'<li><img src="/'+media+'">'; } if(slides['slides'][slide]['head'].length > 0) { - var head = sanitize(slides['slides'][slide]['head']).xss(); + var head = slides['slides'][slide]['head']; slideStr = slideStr+'<div class="slideDesc"><div class="slideHead">'+head+'</div>'; if(slides['slides'][slide]['text'].length > 0) { - var text = sanitize(slides['slides'][slide]['text']).xss(); + var text = slides['slides'][slide]['text']; slideStr = slideStr+'<div class="slideText">'+text+'</div>'; } slideStr = slideStr + '</div>'; |