c0ac84a7f166421f6ffd9b744c45741464e2e019
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
6 * Copyright (c) 2001-2019 *
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')) {
17 include_spip('inc/diff');
20 * Afficher le diff d'un id_rubrique
21 * on affiche en fait le deplacement si id_rubrique a change
22 * le nom de la rubrique sinon
24 * @param string $champ
27 * @param string $format
30 function afficher_diff_id_rubrique_dist($champ, $old, $new, $format = 'diff') {
31 // ne pas se compliquer la vie !
33 $out = _T('info_dans_rubrique')
34 . ' <b>« ' . generer_info_entite($new, 'rubrique', 'titre') . ' »</b>';
37 'revisions:version_deplace_rubrique',
39 'from' => generer_info_entite($old, 'rubrique', 'titre'),
40 'to' => generer_info_entite($new, 'rubrique', 'titre')