Code Duplication    Length = 7-7 lines in 2 locations

admin/main.php 1 location

@@ 204-210 (lines=7) @@
201
$GLOBALS['xoTheme']->addScript('', '', $adminscript);
202
$GLOBALS['xoTheme']->addScript($helper->url('assets/js/jquery.form.js'));
203
$GLOBALS['xoTheme']->addScript($helper->url('assets/js/jquery.countdown.js'));
204
if (file_exists($helper->path('language/' . $lang . '/js/jquery.ui.datepicker-language.js'))) {
205
    $GLOBALS['xoTheme']->addScript($helper->url('language/' . $lang . '/js/jquery.ui.datepicker-language.js'));
206
    $GLOBALS['xoTheme']->addScript($helper->url('language/' . $lang . '/js/jquery.countdown.js'));
207
} else {
208
    $GLOBALS['xoTheme']->addScript($helper->url('language/english/js/jquery.ui.datepicker-language.js'));
209
    $GLOBALS['xoTheme']->addScript($helper->url('language/english/js/jquery.countdown.js'));
210
}
211
$GLOBALS['xoTheme']->addScript($helper->url('assets/js/adminsmallworld.js'));
212
213
xoops_cp_footer();

admin/useradmin.php 1 location

@@ 116-122 (lines=7) @@
113
$GLOBALS['xoTheme']->addScript('', '', $adminscript);
114
$GLOBALS['xoTheme']->addScript($helper->url('assets/js/jquery.form.js'));
115
$GLOBALS['xoTheme']->addScript($helper->url('assets/js/jquery.countdown.js'));
116
if (file_exists($helper->path('language/assets/' . $lang . '/js/jquery.ui.datepicker-language.js'))) {
117
    $GLOBALS['xoTheme']->addScript($helper->url('language/' . $lang . '/js/jquery.ui.datepicker-language.js'));
118
    $GLOBALS['xoTheme']->addScript($helper->url('language/' . $lang . '/js/jquery.countdown.js'));
119
} else {
120
    $GLOBALS['xoTheme']->addScript($helper->url('language/english/js/jquery.ui.datepicker-language.js'));
121
    $GLOBALS['xoTheme']->addScript($helper->url('language/english/js/jquery.countdown.js'));
122
}
123
$GLOBALS['xoTheme']->addScript($helper->url('assets/js/adminsmallworld.js'));
124
125
require_once __DIR__ . '/admin_footer.php';