Code Duplication    Length = 6-8 lines in 2 locations

blocks/news_bigstory.php 1 location

@@ 49-54 (lines=6) @@
46
    } else {
47
        foreach ($stories as $key => $story) {
48
            $htmltitle = '';
49
            if ($infotips > 0) {
50
                $block['infotips'] = news_make_infotips($story->hometext());
51
                $htmltitle         = ' title="' . $block['infotips'] . '"';
52
            } else {
53
                $htmltitle = ' title="' . $story->title('Show') . '"';
54
            }
55
            $block['htmltitle']         = $htmltitle;
56
            $block['message']           = _MB_NEWS_TMRSI;
57
            $block['story_title']       = $story->title('Show');

blocks/news_randomnews.php 1 location

@@ 82-89 (lines=8) @@
79
            $html             = $story->nohtml() == 1 ? 0 : 1;
80
            $news['teaser']   = news_truncate_tagsafe($myts->displayTarea($story->hometext, $html), $options[3] + 3);
81
            $news['infotips'] = ' title="' . $story->title() . '"';
82
        } else {
83
            $news['teaser'] = '';
84
            if ($infotips > 0) {
85
                $news['infotips'] = ' title="' . news_make_infotips($story->hometext()) . '"';
86
            } else {
87
                $news['infotips'] = ' title="' . $story->title() . '"';
88
            }
89
        }
90
        $block['stories'][] = $news;
91
    }
92
    $block['lang_read_more'] = _MB_READMORE;