1
0
Fork 0
forked from blallo/rss-bridge

[VkBridge] use BridgeAbstract::getSimpleHTMLDOM

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-08-22 00:26:14 +02:00
parent 4aaa921696
commit b5cc7b4ded

View file

@ -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);
}