Code Duplication    Length = 5-5 lines in 2 locations

singlevideo.php 1 location

@@ 112-116 (lines=5) @@
109
include_once XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/include/videoloadinfo.php';
110
111
$xoopsTpl->assign('show_screenshot', false);
112
if (isset($GLOBALS['xoopsModuleConfig']['screenshot']) && $GLOBALS['xoopsModuleConfig']['screenshot'] == 1) {
113
    $xoopsTpl->assign('shotwidth', $GLOBALS['xoopsModuleConfig']['shotwidth']);
114
    $xoopsTpl->assign('shotheight', $GLOBALS['xoopsModuleConfig']['shotheight']);
115
    $xoopsTpl->assign('show_screenshot', true);
116
}
117
118
if (false === $video['isadmin']) {
119
    $count = XoopstubeUtilities::xtubeUpdateCounter($lid);

viewcat.php 1 location

@@ 235-239 (lines=5) @@
232
233
    // Screenshots display
234
    $xoopsTpl->assign('show_screenshot', false);
235
    if (isset($GLOBALS['xoopsModuleConfig']['screenshot']) && $GLOBALS['xoopsModuleConfig']['screenshot'] == 1) {
236
        $xoopsTpl->assign('shotwidth', $GLOBALS['xoopsModuleConfig']['shotwidth']);
237
        $xoopsTpl->assign('shotheight', $GLOBALS['xoopsModuleConfig']['shotheight']);
238
        $xoopsTpl->assign('show_screenshot', true);
239
    }
240
241
    // Nav page render
242
    $page_nav = $pagenav->renderNav();