Code Duplication    Length = 8-10 lines in 2 locations

prive/formulaires/editer_auteur.php 1 location

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

ecrire/inc/utils.php 1 location

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