mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-19 06:42:14 +02:00
[bridges] Change all bridges to use BridgeAbstract with getSimpleHTMLDOMCached
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
define('WIKIPEDIA_SUBJECT_TFA', 0); // Today's featured article
|
||||
define('WIKIPEDIA_SUBJECT_DYK', 1); // Did you know...
|
||||
|
||||
class WikipediaBridge extends HttpCachingBridgeAbstract {
|
||||
class WikipediaBridge extends BridgeAbstract {
|
||||
const MAINTAINER = 'logmanoriginal';
|
||||
const NAME = 'Wikipedia bridge for many languages';
|
||||
const URI = 'https://www.wikipedia.org/';
|
||||
@@ -175,7 +175,7 @@ class WikipediaBridge extends HttpCachingBridgeAbstract {
|
||||
* Loads the full article from a given URI
|
||||
*/
|
||||
private function LoadFullArticle($uri){
|
||||
$content_html = $this->get_cached($uri);
|
||||
$content_html = $this->getSimpleHTMLDOMCached($uri);
|
||||
|
||||
if(!$content_html)
|
||||
$this->returnServerError('Could not load site: ' . $uri . '!');
|
||||
|
Reference in New Issue
Block a user