mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
fixed /recent /popular /active /users/name
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user