more fixes

This commit is contained in:
Baris Usakli
2013-07-03 13:22:50 -04:00
parent a76d6c1f9a
commit 82319a020f
2 changed files with 3 additions and 6 deletions

View File

@@ -134,7 +134,7 @@ var express = require('express'),
var topic_url = tid + (req.params.slug ? '/' + req.params.slug : '');
topics.getTopicById(tid, ((req.user) ? req.user.uid : 0), function(topic) {
topics.getTopicWithPosts(tid, ((req.user) ? req.user.uid : 0), function(topic) {
res.send(
app.build_header(res) +
'\n\t<noscript>\n' + templates['noscript/header'] + templates['noscript/topic'].parse(topic) + '\n\t</noscript>' +
@@ -241,7 +241,7 @@ var express = require('express'),
res.json(data);
break;
case 'topic' :
topics.getTopicById(req.params.id, uid, function(data) {
topics.getTopicWithPosts(req.params.id, uid, function(data) {
res.json(data);
});
break;
@@ -314,9 +314,6 @@ var express = require('express'),
app.all('/test', function(req, res) {
/*topics.getTopicById(24, 1, function(data) {
res.send(data);
});*/
categories.getCategoryById(1,1, function(data) {
res.send(data);
},1);