bridges: rename file_get_html to getSimpleHTMLDOM
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
6e2c7ceaf4
commit
e754ca52e9
2 changed files with 3 additions and 3 deletions
|
@ -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=...).');
|
||||
|
|
|
@ -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!');
|
||||
|
||||
|
|
Loading…
Reference in a new issue