Sfoglia il codice sorgente

bridges: rename file_get_html to getSimpleHTMLDOM

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
Pierre Mazière 7 anni fa
parent
commit
e754ca52e9
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 1 1
      bridges/AskfmBridge.php
  2. 2 2
      bridges/KununuBridge.php

+ 1 - 1
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=...).');

+ 2 - 2
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!');