From cb8e62cd7cb5372b87b36484d97c69982bf1987f Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 3 Jul 2018 15:47:28 -0400 Subject: [PATCH] fixes #6626 --- src/meta/themes.js | 4 ++-- src/views/admin/partials/theme_list.tpl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/meta/themes.js b/src/meta/themes.js index 0f22993c3f..d011bed707 100644 --- a/src/meta/themes.js +++ b/src/meta/themes.js @@ -104,9 +104,9 @@ Themes.get = function (callback) { // Minor adjustments for API output configObj.type = 'local'; if (configObj.screenshot) { - configObj.screenshot_url = 'css/previews/' + encodeURIComponent(configObj.id); + configObj.screenshot_url = nconf.get('relative_path') + '/css/previews/' + encodeURIComponent(configObj.id); } else { - configObj.screenshot_url = 'assets/images/themes/default.png'; + configObj.screenshot_url = nconf.get('relative_path') + '/assets/images/themes/default.png'; } next(null, configObj); } catch (err) { diff --git a/src/views/admin/partials/theme_list.tpl b/src/views/admin/partials/theme_list.tpl index aede3d71d0..26a226b803 100644 --- a/src/views/admin/partials/theme_list.tpl +++ b/src/views/admin/partials/theme_list.tpl @@ -1,7 +1,7 @@
data-css="{themes.css}">
-
+

{themes.name}