mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	process.env is an object
This commit is contained in:
		| @@ -118,7 +118,7 @@ Controllers.register = function(req, res, next) { | ||||
| 	data.error = req.flash('error')[0]; | ||||
|  | ||||
| 	plugins.fireHook('filter:register.build', {req: req, res: res, templateData: data}, function(err, data) { | ||||
| 		if (err && process.env === 'development') { | ||||
| 		if (err && global.env === 'development') { | ||||
| 			winston.warn(JSON.stringify(err)); | ||||
| 			return next(err); | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user