Code Duplication    Length = 5-5 lines in 2 locations

singlevideo.php 1 location

@@ 123-127 (lines=5) @@
120
include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getvar('dirname') . '/include/videoloadinfo.php';
121
122
$xoopsTpl->assign('show_screenshot', false);
123
if (isset($xoopsModuleConfig['screenshot']) && $xoopsModuleConfig['screenshot'] == 1) {
124
    $xoopsTpl->assign('shotwidth', $xoopsModuleConfig['shotwidth']);
125
    $xoopsTpl->assign('shotheight', $xoopsModuleConfig['shotheight']);
126
    $xoopsTpl->assign('show_screenshot', true);
127
}
128
129
if ($video['isadmin'] == false) {
130
    $count = xtubeUpdateCounter($lid);

viewcat.php 1 location

@@ 254-258 (lines=5) @@
251
252
    // Screenshots display
253
    $xoopsTpl->assign('show_screenshot', false);
254
    if (isset($xoopsModuleConfig['screenshot']) && $xoopsModuleConfig['screenshot'] == 1) {
255
        $xoopsTpl->assign('shotwidth', $xoopsModuleConfig['shotwidth']);
256
        $xoopsTpl->assign('shotheight', $xoopsModuleConfig['shotheight']);
257
        $xoopsTpl->assign('show_screenshot', true);
258
    }
259
260
    // Nav page render
261
    $page_nav = $pagenav->renderNav();