mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-11 02:54:10 +02:00
[core] extract BridgeAbstract methods to make them functions
- returnError, returnServerError, returnClientError ,debugMessage are moved to lib/error.php - getContents, getSimpleHTMLDOM, getSimpleHTMLDOMCached are moved to lib/contents.php Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -18,8 +18,8 @@ class VkBridge extends BridgeAbstract {
|
||||
return static::URI.urlencode($this->getInput('u'));
|
||||
}
|
||||
public function collectData(){
|
||||
$text_html = $this->getContents($this->getURI())
|
||||
or $this->returnServerError('No results for group or user name "'.$this->getInput('u').'".');
|
||||
$text_html = getContents($this->getURI())
|
||||
or returnServerError('No results for group or user name "'.$this->getInput('u').'".');
|
||||
|
||||
$text_html = iconv('windows-1251', 'utf-8', $text_html);
|
||||
$html = str_get_html($text_html);
|
||||
|
Reference in New Issue
Block a user