From 19cfef9570f06ec103656cf11288d214c7c30f36 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Fri, 17 May 2013 15:34:17 -0400 Subject: [PATCH] fixed /recent /popular /active /users/name --- public/src/templates.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/public/src/templates.js b/public/src/templates.js index a5818e1649..0929f65c92 100644 --- a/public/src/templates.js +++ b/public/src/templates.js @@ -99,13 +99,18 @@ var api_url = (url === '' || url === '/') ? 'home' : url; - var tpl_url = templates.get_custom_map(url); - if (tpl_url == false && !templates[api_url]) { - tpl_url = api_url.split('/')[0]; - } else { - tpl_url = api_url; + + var tpl_url = templates.get_custom_map(api_url); + + if (tpl_url === false) { + if (!available_templates[api_url]) { + tpl_url = api_url.split('/')[0]; + } else { + tpl_url = api_url; + } } + var template_data = null;