From b5cc7b4ded0985b6699333dc56c1255c19575520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Mon, 22 Aug 2016 00:26:14 +0200 Subject: [PATCH] [VkBridge] 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/VkBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/VkBridge.php b/bridges/VkBridge.php index b655cf6..ec48c27 100644 --- a/bridges/VkBridge.php +++ b/bridges/VkBridge.php @@ -21,7 +21,7 @@ class VkBridge extends BridgeAbstract { $html = ''; if (isset($param['u'])) { $this->request = $param['u']; - $text_html = file_get_contents(urldecode($this->request)) or $this->returnServerError('No results for this query.'); + $text_html = $this->getSimpleHTMLDOM(urldecode($this->request)) or $this->returnServerError('No results for this query.'); $text_html = iconv('windows-1251', 'utf-8', $text_html); $html = str_get_html($text_html); }