[SPIP] ~maj 3.0.10 --> 3.0.14
[lhc/web/www.git] / www / plugins-dist / revisions / afficher_diff / champ.php
index efd968a..20a2eab 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  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.     *
@@ -28,7 +28,8 @@ function afficher_diff_champ_dist($champ,$old,$new,$format='diff'){
        if ($old==$new)
                $out = ($format!='complet'?'':$new);
        else {
-
+               if($f = charger_fonction($champ,'afficher_diff'))
+                       return $f($champ,$old,$new,$format='diff');
                $diff = new Diff(new DiffTexte);
                $n = preparer_diff($new);
                $o = preparer_diff($old);