mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 01:45:47 +01:00
Remove some deprecated/unnecessary code (#9688)
* refactor: remove mkdirp promisify * refactor: remove old session deletion API route * refactor: remove middleware.isAdmin * refactor: remove templateValues.config.bootswatchSkin * fix: unused dependencies
This commit is contained in:
@@ -101,7 +101,6 @@ middleware.renderHeader = async function renderHeader(req, res, data) {
|
||||
results.user.isEmailConfirmSent = !!results.isEmailConfirmSent;
|
||||
|
||||
templateValues.bootswatchSkin = (parseInt(meta.config.disableCustomUserSkins, 10) !== 1 ? res.locals.config.bootswatchSkin : '') || meta.config.bootswatchSkin || '';
|
||||
templateValues.config.bootswatchSkin = templateValues.bootswatchSkin || 'noskin'; // TODO remove in v1.12.0+
|
||||
templateValues.browserTitle = results.browserTitle;
|
||||
({
|
||||
navigation: templateValues.navigation,
|
||||
|
||||
Reference in New Issue
Block a user