diff --git a/lib/jekyll/site.rb b/lib/jekyll/site.rb index c0e0c241380..0aa3c138c54 100644 --- a/lib/jekyll/site.rb +++ b/lib/jekyll/site.rb @@ -143,7 +143,7 @@ def read_directories(dir = '') else destination_dir = self.public_root.nil? ? dir : dir.sub(/^#{Regexp.escape(self.public_root)}/, '') # otherwise treat it as a static file - static_files << StaticFile.new(self, self.source, dir, destination_dir, f) + static_files << StaticFile.new(self.source, dir, destination_dir, f) end end end diff --git a/lib/jekyll/static_file.rb b/lib/jekyll/static_file.rb index 6c617b510ff..9631425f1c9 100644 --- a/lib/jekyll/static_file.rb +++ b/lib/jekyll/static_file.rb @@ -6,12 +6,11 @@ class StaticFile # Initialize a new StaticFile. # - # site - The Site. # base - The String path to the . - # dir - The String path between and the file. + # source_dir - The String path between and the file. + # destination_dir - The String path between and the file. # name - The String filename of the file. - def initialize(site, base, source_dir, destination_dir, name) - @site = site + def initialize(base, source_dir, destination_dir, name) @base = base @source_dir = source_dir @destination_dir = destination_dir