Fix #3 Debug.log detection

This commit is contained in:
Erwan
2012-07-29 15:21:24 +02:00
parent 93972d4803
commit 39d8cdd0c1
2 changed files with 2 additions and 13 deletions

View File

@@ -106,7 +106,7 @@ class WpTarget
end
def has_debug_log?
Browser.instance.get(debug_log_url()).body[%r{error}i] ? true : false
Browser.instance.get(debug_log_url()).body[%r{\[[^\]]+\] PHP (?:Warning|Error):}] ? true : false
end
def debug_log_url