Fix LeBonCoinBridge, now uses getContents correctly,

This commit is contained in:
teromene 2018-07-17 10:50:30 +02:00
parent 87fc9e9156
commit 1f2fe25471

View file

@ -159,7 +159,7 @@ class LeBonCoinBridge extends BridgeAbstract {
);
$url = self::URI . 'recherche/?' . http_build_query($params);
$html = file_get_contents($url)
$html = getContents($url)
or returnServerError('Could not request LeBonCoin. Tried: ' . $url);
if(!preg_match('/^<script>window.FLUX_STATE[^\r\n]*/m', $html, $matches)) {