forked from blallo/rss-bridge
remove empty brackets from title
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
dc6928316b
commit
1f85a2294d
1 changed files with 6 additions and 1 deletions
|
@ -118,7 +118,12 @@ class LWNprevBridge extends BridgeAbstract{
|
|||
}
|
||||
$h2PrevSibling=null;
|
||||
|
||||
$item->title='['.$cat1.($cat2?'/'.$cat2:'').'] '.$h2->textContent;
|
||||
$item->title='';
|
||||
if(!empty($cat1)){
|
||||
$item->title.='['.$cat1.($cat2?'/'.$cat2:'').'] ';
|
||||
}
|
||||
$item->title.=$h2->textContent;
|
||||
|
||||
$node=$h2;
|
||||
$content='';
|
||||
$contentEnd=false;
|
||||
|
|
Loading…
Reference in a new issue