Code Duplication    Length = 3-5 lines in 3 locations

ecrire/exec/naviguer.php 3 locations

@@ 314-316 (lines=3) @@
311
		//
312
		// Les sites references a valider
313
		//
314
		if ($GLOBALS['meta']['activer_sites'] != 'non') {
315
			$encours .= afficher_objets('site','<b>' . _T('info_site_valider') . '</b>', array("FROM" => 'spip_syndic', 'WHERE' => "id_rubrique=$id_rubrique AND statut='prop'", 'ORDER BY' => "nom_site"));
316
		}
317
318
		//
319
		// Les sites a probleme
@@ 321-325 (lines=5) @@
318
		//
319
		// Les sites a probleme
320
		//
321
		if ($GLOBALS['meta']['activer_sites'] != 'non'
322
		AND autoriser('publierdans','rubrique',$id_rubrique)) {
323
324
			$encours .= afficher_objets('site','<b>' . _T('avis_sites_syndiques_probleme') . '</b>', array('FROM' => 'spip_syndic', 'WHERE' => "id_rubrique=$id_rubrique AND (syndication='off' OR syndication='sus') AND statut='publie'", 'ORDER BY' => "nom_site"));
325
		}
326
327
		// Les articles syndiques en attente de validation
328
		if ($id_rubrique == 0
@@ 396-399 (lines=4) @@
393
394
	//// Les sites references
395
396
	if ($GLOBALS['meta']["activer_sites"] == 'oui') {
397
		$res .= afficher_objets('site','<b>' . _T('titre_sites_references_rubrique') . '</b>', array("FROM" => 'spip_syndic', 'WHERE' => "id_rubrique=$id_rubrique AND statut!='refuse' AND statut != 'prop' AND syndication NOT IN ('off','sus')", 'ORDER BY' => 'nom_site'));
398
 		$res .= $bouton_sites;
399
	}
400
	return $res;
401
}
402