3e53802d6a9fe1a6861b82e5b87f835b04811bd1
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 include_spip('inc/diff');
18 * Afficher le diff d'un id_rubrique
19 * on affiche en fait le deplacement si id_rubrique a change
20 * le nom de la rubrique sinon
22 * @param string $champ
25 * @param string $format
28 function afficher_diff_id_rubrique_dist($champ,$old,$new,$format='diff'){
29 // ne pas se compliquer la vie !
31 $out = _T('info_dans_rubrique')
32 . " <b>« ".generer_info_entite($new,'rubrique','titre')." »</b>";
34 $out = _T('revisions:version_deplace_rubrique',
35 array('from'=> generer_info_entite($old,'rubrique','titre')
36 ,'to'=>generer_info_entite($new,'rubrique','titre')