1
0
Fork 0
forked from blallo/rss-bridge

bridges: rename file_get_html to getSimpleHTMLDOM

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-08-14 15:27:49 +02:00
parent 6e2c7ceaf4
commit e754ca52e9
2 changed files with 3 additions and 3 deletions

View file

@ -22,7 +22,7 @@ class AskfmBridge extends BridgeAbstract{
$html = '';
if (isset($param['u'])) {
$this->request = $param['u'];
$html = $this->file_get_html('http://ask.fm/'.urlencode($this->request).'/answers/more?page=0') or $this->returnServerError('Requested username can\'t be found.');
$html = $this->getSimpleHTMLDOM('http://ask.fm/'.urlencode($this->request).'/answers/more?page=0') or $this->returnServerError('Requested username can\'t be found.');
}
else {
$this->returnClientError('You must specify a username (?u=...).');

View file

@ -94,7 +94,7 @@ class KununuBridge extends BridgeAbstract{
$this->uri .= "/{$site}/{$company}/{$section}";
// Load page
$html = $this->file_get_html($this->uri);
$html = $this->getSimplHTMLDOM($this->uri);
if($html === false)
$this->returnServerError('Unable to receive data from ' . $this->uri . '!');
@ -267,7 +267,7 @@ class KununuBridge extends BridgeAbstract{
*/
private function extract_full_description($uri){
// Load full article
$html = file_get_html($uri);
$html = $this->getSimpleHTMLDOM($uri);
if($html === false)
$this->returnServerError('Could not load full description!');