Improved error reporting
This commit is contained in:
@ -6,6 +6,10 @@ class HttpLoader implements LoaderInterface
|
||||
{
|
||||
public function load($fix)
|
||||
{
|
||||
if (preg_match("/^http[s]?:/", $fix)) {
|
||||
$body = file_get_contents($fix);
|
||||
return $body;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user