All pastes #425412 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-04-05 13:58 UTC
rendered paste body
  def get_options
    @error = 0
    @options = {}
    @options[:url] = "/#{Fckeditor.config[:upload_dir]}/#{params[:Type]}/#{params[:CurrentFolder]}".gsub(/\/+/, '/')
    @options[:dir] = File.join('public', @options[:url])^M
    @options[:dir] = File.join('.', @options[:url]) if Dir.pwd.ends_with?('/public')
  end