[VkBridge] use BridgeAbstract::getSimpleHTMLDOM
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
4aaa921696
commit
b5cc7b4ded
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ class VkBridge extends BridgeAbstract {
|
||||||
$html = '';
|
$html = '';
|
||||||
if (isset($param['u'])) {
|
if (isset($param['u'])) {
|
||||||
$this->request = $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);
|
$text_html = iconv('windows-1251', 'utf-8', $text_html);
|
||||||
$html = str_get_html($text_html);
|
$html = str_get_html($text_html);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue