98b676fd014167b5f58319e18a49a5e76b102755
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
6 * Copyright (c) 2001-2013 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
11 \***************************************************************************/
13 if (!defined("_ECRIRE_INC_VERSION")) return;
15 function urls_generer_url_forum_dist($id_forum, $args='', $ancre='') {
16 if ($id_forum = intval($id_forum)) {
17 include_spip('inc/forum');
18 list($type, $id,) = racine_forum($id_forum);
20 if (!$ancre) $ancre = "forum$id_forum";
21 return generer_url_entite($id, $type, $args, $ancre, true);