/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
- * Copyright (c) 2001-2013 *
+ * Copyright (c) 2001-2014 *
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
if ($old==$new)
$out = ($format!='complet'?'':$new);
else {
- if($f = charger_fonction($champ,'afficher_diff'))
- return $f($champ,$old,$new,$format='diff');
+ if($f = charger_fonction($champ,'afficher_diff', true)){
+ return $f($champ, $old, $new, $format);
+ }
+
$diff = new Diff(new DiffTexte);
$n = preparer_diff($new);
$o = preparer_diff($old);
/**
- * http://doc.spip.org/@afficher_para_modifies
+ * http://code.spip.net/@afficher_para_modifies
*
* @param string $texte
* @param bool $court