mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-26 17:44:49 +02:00
[bridges] use constants instead of variable members
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
<?php
|
||||
class DauphineLibereBridge extends BridgeAbstract {
|
||||
|
||||
public $maintainer = "qwertygc";
|
||||
public $name = "Dauphine Bridge";
|
||||
public $uri = "http://www.ledauphine.com/";
|
||||
public $description = "Returns the newest articles.";
|
||||
const MAINTAINER = "qwertygc";
|
||||
const NAME = "Dauphine Bridge";
|
||||
const URI = "http://www.ledauphine.com/";
|
||||
const DESCRIPTION = "Returns the newest articles.";
|
||||
|
||||
public $parameters = array( array(
|
||||
const PARAMETERS = array( array(
|
||||
'u'=>array(
|
||||
'name'=>'Catégorie de l\'article',
|
||||
'type'=>'list',
|
||||
@@ -42,10 +42,10 @@ class DauphineLibereBridge extends BridgeAbstract {
|
||||
$context = stream_context_create($opts);
|
||||
|
||||
if (empty($this->getInput('u'))) {
|
||||
$html = $this->getSimpleHTMLDOM($this->uri.$this->getInput('u').'/rss')
|
||||
$html = $this->getSimpleHTMLDOM(self::URI.$this->getInput('u').'/rss')
|
||||
or $this->returnServerError('Could not request DauphineLibere.');
|
||||
} else {
|
||||
$html = $this->getSimpleHTMLDOM($this->uri.'rss')
|
||||
$html = $this->getSimpleHTMLDOM(self::URI.'rss')
|
||||
or $this->returnServerError('Could not request DauphineLibere.');
|
||||
}
|
||||
$limit = 0;
|
||||
|
Reference in New Issue
Block a user