Code Duplication    Length = 8-10 lines in 2 locations

prive/formulaires/editer_auteur.php 1 location

@@ 439-446 (lines=8) @@
436
			$contexte = array_merge($contexte, $c);
437
			// si pas de langue explicitement demandee, prendre celle de l'auteur si on la connait, ou a defaut celle du site
438
			// plutot que celle de l'admin qui vient de cliquer sur le bouton
439
			if (!isset($contexte['lang']) or !$contexte['lang']) {
440
				if (isset($row['lang']) and $row['lang']) {
441
					$contexte['lang'] = $row['lang'];
442
				}
443
				else {
444
					$contexte['lang'] = $GLOBALS['meta']['langue_site'];
445
				}
446
			}
447
			lang_select($contexte['lang']);
448
			$message = recuperer_fond($fond, $contexte);
449
			include_spip("inc/notifications");

ecrire/inc/utils.php 1 location

@@ 3230-3239 (lines=10) @@
3227
	$texte = "";
3228
	$pages = array();
3229
	$lang_select = '';
3230
	if (!isset($options['etoile']) or !$options['etoile']) {
3231
		// Si on a inclus sans fixer le critere de lang, on prend la langue courante
3232
		if (!isset($contexte['lang'])) {
3233
			$contexte['lang'] = $GLOBALS['spip_lang'];
3234
		}
3235
3236
		if ($contexte['lang'] != $GLOBALS['meta']['langue_site']) {
3237
			$lang_select = lang_select($contexte['lang']);
3238
		}
3239
	}
3240
3241
	if (!isset($GLOBALS['_INC_PUBLIC'])) {
3242
		$GLOBALS['_INC_PUBLIC'] = 0;