mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-15 13:04:01 +02:00
use BridgeAbstract::file_get_html in all bridges
instead of simple_html_dom function file_get_html Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -33,8 +33,8 @@ class GooglePlusPostBridge extends BridgeAbstract
|
||||
|
||||
$this->request = $param['username'];
|
||||
// get content parsed
|
||||
// $html = file_get_html(__DIR__ . '/../posts2.html'
|
||||
$html = file_get_html(self::GOOGLE_PLUS_BASE_URL . urlencode($this->request) . '/posts'
|
||||
// $html = $this->file_get_html(__DIR__ . '/../posts2.html'
|
||||
$html = $this->file_get_html(self::GOOGLE_PLUS_BASE_URL . urlencode($this->request) . '/posts'
|
||||
// force language
|
||||
, false, stream_context_create(array('http'=> array(
|
||||
'header' => 'Accept-Language: fr,fr-be,fr-fr;q=0.8,en;q=0.4,en-us;q=0.2;*' . "\r\n"
|
||||
|
Reference in New Issue
Block a user