mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 00:10:25 +01:00
Parse int (#6853)
* Store config fields as JSON in the db Fewer parseInts * Remove unnecessary parseInts * remove some dupe code add tests * remove console.log * remove more parseInts * WIP: read meta.configs defaults from defaults.json remove more parseInts * more work * add log for failing test * update admin pwd * fix tests, dont require posts/cache before configs are initialized * handle saves * Test boolean conditions * remove more parseInts * Fix boolean values * remove lots more parseInts * removed json parsing * renamed var to number * categories dont have timestamp
This commit is contained in:
committed by
GitHub
parent
60c58870af
commit
9c022afae1
@@ -135,8 +135,8 @@ categoryController.get = function (req, res, callback) {
|
||||
|
||||
addTags(categoryData, res);
|
||||
|
||||
categoryData['feeds:disableRSS'] = parseInt(meta.config['feeds:disableRSS'], 10) === 1;
|
||||
categoryData['reputation:disabled'] = parseInt(meta.config['reputation:disabled'], 10) === 1;
|
||||
categoryData['feeds:disableRSS'] = meta.config['feeds:disableRSS'];
|
||||
categoryData['reputation:disabled'] = meta.config['reputation:disabled'];
|
||||
categoryData.title = translator.escape(categoryData.name);
|
||||
pageCount = Math.max(1, Math.ceil(categoryData.topic_count / settings.topicsPerPage));
|
||||
categoryData.pagination = pagination.create(currentPage, pageCount, req.query);
|
||||
|
||||
Reference in New Issue
Block a user