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

@@ 3258-3267 (lines=10) @@
3255
	$texte = "";
3256
	$pages = array();
3257
	$lang_select = '';
3258
	if (!isset($options['etoile']) or !$options['etoile']) {
3259
		// Si on a inclus sans fixer le critere de lang, on prend la langue courante
3260
		if (!isset($contexte['lang'])) {
3261
			$contexte['lang'] = $GLOBALS['spip_lang'];
3262
		}
3263
3264
		if ($contexte['lang'] != $GLOBALS['meta']['langue_site']) {
3265
			$lang_select = lang_select($contexte['lang']);
3266
		}
3267
	}
3268
3269
	if (!isset($GLOBALS['_INC_PUBLIC'])) {
3270
		$GLOBALS['_INC_PUBLIC'] = 0;