From e754ca52e9e86b237456f95444ca121dbecad9f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Sun, 14 Aug 2016 15:27:49 +0200 Subject: [PATCH] bridges: rename file_get_html to getSimpleHTMLDOM MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/AskfmBridge.php | 2 +- bridges/KununuBridge.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bridges/AskfmBridge.php b/bridges/AskfmBridge.php index f130860a..8d44d61e 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 b104de89..c39af382 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!');