diff --git a/bridges/AskfmBridge.php b/bridges/AskfmBridge.php index f130860..8d44d61 100644 --- a/bridges/AskfmBridge.php +++ b/bridges/AskfmBridge.php @@ -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=...).'); diff --git a/bridges/KununuBridge.php b/bridges/KununuBridge.php index b104de8..c39af38 100644 --- a/bridges/KununuBridge.php +++ b/bridges/KununuBridge.php @@ -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!');