remove empty brackets from title

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-06-25 09:52:17 +02:00
parent dc6928316b
commit 1f85a2294d

View file

@ -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;