Merge branch 'master' of github.com:mremolt/refinerycms-wordpress-import

This commit is contained in:
Marc Remolt 2011-07-27 13:56:25 +02:00
commit cdbb1d001a

View File

@ -4,7 +4,7 @@ module Refinery
attr_reader :doc attr_reader :doc
def initialize(file_name) def initialize(file_name)
file_name = File.absolute_path(file_name) file_name = File.expand_path(file_name)
raise "Given file '#{file_name}' no file or not readable." \ raise "Given file '#{file_name}' no file or not readable." \
unless File.file?(file_name) && File.readable?(file_name) unless File.file?(file_name) && File.readable?(file_name)