Code Duplication    Length = 2-3 lines in 2 locations

main/admin/system_announcements.php 1 location

@@ 33-35 (lines=3) @@
30
31
$tool_name = null;
32
33
if (empty($_GET['lang'])) {
34
    $_GET['lang'] = isset($_SESSION['user_language_choice']) ? $_SESSION['user_language_choice'] : null;
35
}
36
37
if (!empty($action)) {
38
    $interbreadcrumb[] = array ("url" => "system_announcements.php", "name" => get_lang('SystemAnnouncements'));

main/inc/lib/api.lib.php 1 location

@@ 4173-4174 (lines=2) @@
4170
                $return = $_user['language'];
4171
            break;
4172
        case 'user_selected_lang':
4173
            if (isset($_SESSION['user_language_choice']) && !empty($_SESSION['user_language_choice']))
4174
                $return = $_SESSION['user_language_choice'];
4175
            break;
4176
        case 'course_lang':
4177
            global $_course;