Skip to content

Node.js based forum software built for the modern web

fix persona defaults

Barış Soner Uşaklıe8b40b58841d
diff --git a/public/src/admin/appearance/themes.js b/public/src/admin/appearance/themes.js
index 36a98c6a38..f2a023206f 100644
--- a/public/src/admin/appearance/themes.js
+++ b/public/src/admin/appearance/themes.js
@@ -46,20 +46,20 @@ define('admin/appearance/themes', ['bootbox', 'translator', 'alerts'], function
});
$('#revert_theme').on('click', function () {
- if (config['theme:id'] === 'nodebb-theme-persona') {
+ if (config['theme:id'] === 'nodebb-theme-harmony') {
return;
}
bootbox.confirm('[[admin/appearance/themes:revert-confirm]]', function (confirm) {
if (confirm) {
socket.emit('admin.themes.set', {
type: 'local',
- id: 'nodebb-theme-persona',
+ id: 'nodebb-theme-harmony',
}, function (err) {
if (err) {
return alerts.error(err);
}
- config['theme:id'] = 'nodebb-theme-persona';
- highlightSelectedTheme('nodebb-theme-persona');
+ config['theme:id'] = 'nodebb-theme-harmony';
+ highlightSelectedTheme('nodebb-theme-harmony');
alerts.alert({
alert_id: 'admin:theme',
type: 'success',
diff --git a/src/middleware/helpers.js b/src/middleware/helpers.js
index a0ebb06d20..dde0c3b749 100644
--- a/src/middleware/helpers.js
+++ b/src/middleware/helpers.js
@@ -65,7 +65,7 @@ helpers.buildBodyClass = function (req, res, templateData = {}) {
parts.push(`page-status-${res.statusCode}`);
- parts.push(`theme-${meta.config['theme:id'].split('-')[2]}`);
+ parts.push(`theme-${(meta.config['theme:id'] || '').split('-')[2]}`);
if (req.loggedIn) {
parts.push('user-loggedin');