Skip to content

Commit

Permalink
fixed file handing error on my box
Browse files Browse the repository at this point in the history
  • Loading branch information
mpagalan committed Oct 19, 2009
1 parent ec9ffd1 commit d3d9ecc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vendor/plugins/easy-ckeditor/lib/ckeditor_file_utils.rb
Expand Up @@ -45,6 +45,7 @@ def CkeditorFileUtils.copy_configuration
backup_config = File.join(RAILS_ROOT, '/public/javascripts/ckeditor/config.bak')
config_symlink = File.join(RAILS_ROOT, '/public/javascripts/ckeditor/config.js')
FileUtils.cp(config_file, dest) unless File.exist?(dest)
return if File.exist?(config_symlink)
if File.exist?(config_symlink)
unless File.symlink?(config_symlink)
FileUtils.rm(backup_config) if File.exist?(backup_config)
Expand Down

0 comments on commit d3d9ecc

Please sign in to comment.