mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	missing nconf require
This commit is contained in:
		| @@ -1,5 +1,6 @@ | |||||||
| 'use strict'; | 'use strict'; | ||||||
|  |  | ||||||
|  | var nconf = require('nconf'); | ||||||
|  |  | ||||||
| var helpers = {}; | var helpers = {}; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -234,8 +234,7 @@ Controllers.outgoing = function(req, res, next) { | |||||||
| 	if (url) { | 	if (url) { | ||||||
| 		res.render('outgoing', data); | 		res.render('outgoing', data); | ||||||
| 	} else { | 	} else { | ||||||
| 		res.status(404); | 		res.status(404).redirect(nconf.get('relative_path') + '/404'); | ||||||
| 		res.redirect(nconf.get('relative_path') + '/404'); |  | ||||||
| 	} | 	} | ||||||
| }; | }; | ||||||
|  |  | ||||||
|   | |||||||
| @@ -28,7 +28,7 @@ tagsController.getTag = function(req, res, next) { | |||||||
|  |  | ||||||
| 			res.locals.metaTags = [ | 			res.locals.metaTags = [ | ||||||
| 				{ | 				{ | ||||||
| 					name: "title", | 					name: 'title', | ||||||
| 					content: tag | 					content: tag | ||||||
| 				}, | 				}, | ||||||
| 				{ | 				{ | ||||||
| @@ -36,7 +36,7 @@ tagsController.getTag = function(req, res, next) { | |||||||
| 					content: tag | 					content: tag | ||||||
| 				}, | 				}, | ||||||
| 				{ | 				{ | ||||||
| 					property: "og:url", | 					property: 'og:url', | ||||||
| 					content: nconf.get('url') + '/tags/' + tag | 					content: nconf.get('url') + '/tags/' + tag | ||||||
| 				} | 				} | ||||||
| 			]; | 			]; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user