Code Duplication    Length = 7-7 lines in 2 locations

ecrire/urls/arbo.php 1 location

@@ 298-304 (lines=7) @@
295
		$url = _debut_urls_arbo
296
			. rtrim($propre,'/')
297
			. url_arbo_terminaison($type);
298
	} else {
299
300
		// objet connu mais sans possibilite d'URL lisible, revenir au defaut
301
		include_spip('base/connect_sql');
302
		$id_type = id_table_objet($type);
303
		$url = get_spip_script('./')."?"._SPIP_PAGE."=$type&$id_type=$id";
304
	}
305
306
	// Ajouter les args
307
	if ($args)

ecrire/urls/propres.php 1 location

@@ 215-221 (lines=7) @@
212
213
		// Repositionne l'URL par rapport a la racine du site (#GLOBALS)
214
		$url = str_repeat('../', $GLOBALS['profondeur_url']).$url;
215
	} else {
216
217
		// objet connu mais sans possibilite d'URL lisible, revenir au defaut
218
		include_spip('base/connect_sql');
219
		$id_type = id_table_objet($type);
220
		$url = _DIR_RACINE . get_spip_script('./')."?"._SPIP_PAGE."=$type&$id_type=$id";
221
	}
222
223
	// Ajouter les args
224
	if ($args)