copy over deprecated config option to new one

This commit is contained in:
maul.esel 2013-05-11 19:57:11 +02:00
parent c44d4248ac
commit a8788f4a0a
1 changed files with 3 additions and 0 deletions

View File

@ -168,6 +168,9 @@ module Jekyll
Jekyll::Logger.warn "Deprecation:", "The 'server_port' configuration option" +
" has been renamed to 'port'. Update your config file" +
" accordingly."
# copy but don't overwrite:
config['port'] = config['server_port'] unless config.has_key?('port')
config.delete('server_port')
end
config