From bbf95662c26d304fb7d712ac7e47b41e930c4a6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Mon, 22 Aug 2016 00:04:15 +0200 Subject: [PATCH] [TwitchApiBridge] use BridgeAbstract::getSimpleHTMLDOM MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/TwitchApiBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/TwitchApiBridge.php b/bridges/TwitchApiBridge.php index 7d9e8410..35c2920c 100644 --- a/bridges/TwitchApiBridge.php +++ b/bridges/TwitchApiBridge.php @@ -129,7 +129,7 @@ class TwitchApiBridge extends BridgeAbstract{ /* Finally we're ready to request data from the API. Each response provides information for the next request. */ for($i = 0; $i < $requests; $i++) { - $response = file_get_contents($request, false, $context); + $response = $this->getSimpleHTMLDOM($request, false, $context); if($response == false) { $this->returnServerError('Request failed! Check if the channel name is valid!');