mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-26 11:26:31 +03:00
[CNETBridge] remove useless member $topicName
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
1de7fb748c
commit
0d36ca21df
1 changed files with 3 additions and 7 deletions
|
@ -1,8 +1,6 @@
|
|||
<?php
|
||||
class CNETBridge extends BridgeAbstract {
|
||||
|
||||
private $topicName = '';
|
||||
|
||||
public function loadMetadatas() {
|
||||
|
||||
$this->maintainer = 'ORelio';
|
||||
|
@ -43,10 +41,7 @@ class CNETBridge extends BridgeAbstract {
|
|||
return $article_html;
|
||||
}
|
||||
|
||||
if (!empty($param['topic']['value']))
|
||||
$this->topicName = $param['topic']['value'];
|
||||
|
||||
$pageUrl = 'http://www.cnet.com/'.(empty($this->topicName) ? '' : 'topics/'.$this->topicName.'/');
|
||||
$pageUrl = 'http://www.cnet.com/'.(empty($param['topic']['value']) ? '' : 'topics/'.$param['topic']['value'].'/');
|
||||
$html = $this->getSimpleHTMLDOM($pageUrl) or $this->returnServerError('Could not request CNET: '.$pageUrl);
|
||||
$limit = 0;
|
||||
|
||||
|
@ -78,7 +73,8 @@ class CNETBridge extends BridgeAbstract {
|
|||
}
|
||||
|
||||
public function getName() {
|
||||
return 'CNET News Bridge'.(empty($this->topicName) ? '' : ' - '.$this->topicName);
|
||||
$param=$this->parameters[$this->queriedContext];
|
||||
return 'CNET News Bridge'.(empty($param['topic']['value']) ? '' : ' - '.$this->param['topic']['value']);
|
||||
}
|
||||
|
||||
public function getCacheDuration() {
|
||||
|
|
Loading…
Reference in a new issue