Merge branch 'master' into production

This commit is contained in:
Nick Winter 2015-03-23 17:01:46 -07:00
commit 56581cfc96
2 changed files with 3 additions and 1 deletions

View file

@ -28,6 +28,8 @@ module.exports = class ForkModal extends ModalView
newModel.unset 'created'
newModel.unset 'original'
newModel.unset 'parent'
newModel.unset 'i18n'
newModel.unset 'i18nCoverage'
newModel.set 'commitMessage', "Forked from #{@model.get('name')}"
newModel.set 'name', @$el.find('#fork-model-name').val()
if @model.schema().properties.permissions

View file

@ -86,7 +86,7 @@ setupChinaRedirectMiddleware = (app) ->
geo = geoip.lookup(ip)
return geo?.country is "CN" and speaksChinese
else
req.chinaVersion = true
req.chinaVersion = true if speaksChinese
return false # If the user is already redirected, don't redirect them!
app.use (req, res, next) ->