From 9525b3398835c6452b146c1a1ae2015520b432a2 Mon Sep 17 00:00:00 2001 From: erwanlr Date: Tue, 5 Mar 2013 14:13:15 +0100 Subject: [PATCH] Require homogenization --- lib/common/updater/git_updater.rb | 2 +- lib/common/updater/svn_updater.rb | 2 +- lib/wpscan/wp_item.rb | 2 +- lib/wpscan/wp_theme.rb | 2 +- lib/wpscan/wp_version.rb | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/common/updater/git_updater.rb b/lib/common/updater/git_updater.rb index 4f4c4815..c5f75710 100644 --- a/lib/common/updater/git_updater.rb +++ b/lib/common/updater/git_updater.rb @@ -17,7 +17,7 @@ # along with this program. If not, see . #++ -require File.expand_path(File.dirname(__FILE__) + '/updater') +require 'common/updater/updater' class GitUpdater < Updater diff --git a/lib/common/updater/svn_updater.rb b/lib/common/updater/svn_updater.rb index b5678d88..d0e6239b 100644 --- a/lib/common/updater/svn_updater.rb +++ b/lib/common/updater/svn_updater.rb @@ -17,7 +17,7 @@ # along with this program. If not, see . #++ -require File.expand_path(File.dirname(__FILE__) + '/updater') +require 'common/updater/updater' class SvnUpdater < Updater diff --git a/lib/wpscan/wp_item.rb b/lib/wpscan/wp_item.rb index 5b560e71..46411d8e 100644 --- a/lib/wpscan/wp_item.rb +++ b/lib/wpscan/wp_item.rb @@ -17,7 +17,7 @@ # along with this program. If not, see . #++ -require "#{WPSCAN_LIB_DIR}/vulnerable" +require "wpscan/vulnerable" class WpItem < Vulnerable attr_reader :base_url, :path, :wp_content_dir, :name, :vulns_file, :vulns_xpath, :wp_plugins_dir, :type diff --git a/lib/wpscan/wp_theme.rb b/lib/wpscan/wp_theme.rb index c3ed7b84..1c803e64 100644 --- a/lib/wpscan/wp_theme.rb +++ b/lib/wpscan/wp_theme.rb @@ -17,7 +17,7 @@ # along with this program. If not, see . #++ -require "#{WPSCAN_LIB_DIR}/vulnerable" +require "wpscan/vulnerable" class WpTheme < WpItem diff --git a/lib/wpscan/wp_version.rb b/lib/wpscan/wp_version.rb index de11a72d..b863dc38 100644 --- a/lib/wpscan/wp_version.rb +++ b/lib/wpscan/wp_version.rb @@ -17,7 +17,7 @@ # along with this program. If not, see . #++ -require "#{WPSCAN_LIB_DIR}/vulnerable" +require "wpscan/vulnerable" class WpVersion < Vulnerable