Code Duplication    Length = 5-5 lines in 2 locations

article.php 1 location

@@ 549-553 (lines=5) @@
546
$xoopsTpl->assign('showPdfIcon', $canPdf);
547
548
		
549
if (news_getmoduleoption('displaytopictitle') == 1) {
550
       $xoopsTpl->assign('displaytopictitle',true);
551
} else {
552
       $xoopsTpl->assign('displaytopictitle',false);
553
}
554
555
//Add style css
556
$xoTheme->addStylesheet('modules/news/assets/css/style.css');

index.php 1 location

@@ 225-229 (lines=5) @@
222
    unset($story);
223
    
224
    // orwah show topictitle in news_item.tpl
225
	if (news_getmoduleoption('displaytopictitle') == 1) {
226
          $xoopsTpl->assign('displaytopictitle',true);
227
    } else {
228
          $xoopsTpl->assign('displaytopictitle',false);
229
    }
230
231
    $totalcount = NewsStory::countPublishedByTopic($xoopsOption['storytopic'], $xoopsModuleConfig['restrictindex']);
232
    if ($totalcount > $scount) {