default wp_content_dir

This commit is contained in:
Christian Mehlmauer
2012-09-18 19:56:14 +02:00
parent 96ff20a70a
commit 9e5aa05859
9 changed files with 26 additions and 49 deletions

View File

@@ -23,7 +23,7 @@ class WpItem < Vulnerable
@version = nil
def initialize(options = {})
@wp_content_dir = options[:wp_content_dir]
@wp_content_dir = options[:wp_content_dir] || "wp-content"
@url = options[:url]
@path = options[:path]
@name = options[:name] || extract_name_from_url