diff --git a/lib/compass/configuration.rb b/lib/compass/configuration.rb index bf12d98f..eaa5b8a4 100644 --- a/lib/compass/configuration.rb +++ b/lib/compass/configuration.rb @@ -143,7 +143,7 @@ module Compass end end - def root_relative(path) + def http_root_relative(path) hp = http_path || default_http_path hp = hp[0..-2] if hp[-1..-1] == "/" "#{hp}/#{path}" diff --git a/lib/compass/sass_extensions/functions/urls.rb b/lib/compass/sass_extensions/functions/urls.rb index 06103623..d37e8044 100644 --- a/lib/compass/sass_extensions/functions/urls.rb +++ b/lib/compass/sass_extensions/functions/urls.rb @@ -8,7 +8,7 @@ module Compass::SassExtensions::Functions::Urls elsif Compass.configuration.http_stylesheets_path Compass.configuration.http_stylesheets_path else - Compass.configuration.root_relative(Compass.configuration.css_dir) + Compass.configuration.http_root_relative(Compass.configuration.css_dir) end url("#{http_stylesheets_path}/#{path}") @@ -28,7 +28,7 @@ module Compass::SassExtensions::Functions::Urls elsif Compass.configuration.http_images_path Compass.configuration.http_images_path else - Compass.configuration.root_relative(Compass.configuration.images_dir) + Compass.configuration.http_root_relative(Compass.configuration.images_dir) end # Compute the real path to the image on the file stystem if the images_dir is set.