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

@@ 4243-4244 (lines=2) @@
4240
                $return = $_user['language'];
4241
            break;
4242
        case 'user_selected_lang':
4243
            if (isset($_SESSION['user_language_choice']) && !empty($_SESSION['user_language_choice']))
4244
                $return = $_SESSION['user_language_choice'];
4245
            break;
4246
        case 'course_lang':
4247
            global $_course;