Fix #3 Checking for the debug.log in wp-content

This commit is contained in:
Erwan
2012-07-29 14:32:32 +02:00
parent 872b293944
commit 93972d4803
4 changed files with 53 additions and 11 deletions

View File

@@ -105,4 +105,12 @@ class WpTarget
@wp_plugins_dir
end
def has_debug_log?
Browser.instance.get(debug_log_url()).body[%r{error}i] ? true : false
end
def debug_log_url
@uri.merge("#{wp_content_dir()}/debug.log").to_s
end
end