Code Duplication    Length = 8-10 lines in 2 locations

prive/formulaires/editer_auteur.php 1 location

@@ 463-470 (lines=8) @@
460
			$contexte = array_merge($contexte, $c);
461
			// si pas de langue explicitement demandee, prendre celle de l'auteur si on la connait, ou a defaut celle du site
462
			// plutot que celle de l'admin qui vient de cliquer sur le bouton
463
			if (!isset($contexte['lang']) or !$contexte['lang']) {
464
				if (isset($row['lang']) and $row['lang']) {
465
					$contexte['lang'] = $row['lang'];
466
				}
467
				else {
468
					$contexte['lang'] = $GLOBALS['meta']['langue_site'];
469
				}
470
			}
471
			lang_select($contexte['lang']);
472
			$message = recuperer_fond($fond, $contexte);
473
			include_spip("inc/notifications");

ecrire/inc/utils.php 1 location

@@ 3272-3281 (lines=10) @@
3269
	$texte = "";
3270
	$pages = array();
3271
	$lang_select = '';
3272
	if (!isset($options['etoile']) or !$options['etoile']) {
3273
		// Si on a inclus sans fixer le critere de lang, on prend la langue courante
3274
		if (!isset($contexte['lang'])) {
3275
			$contexte['lang'] = $GLOBALS['spip_lang'];
3276
		}
3277
3278
		if ($contexte['lang'] != $GLOBALS['meta']['langue_site']) {
3279
			$lang_select = lang_select($contexte['lang']);
3280
		}
3281
	}
3282
3283
	if (!isset($GLOBALS['_INC_PUBLIC'])) {
3284
		$GLOBALS['_INC_PUBLIC'] = 0;