public function FormatDiff($Old, $New) {
      static $TinyDiff = NULL;

      if ($TinyDiff === NULL) {
         require_once(dirname(__FILE__).'/tiny_diff.php');
         $TinyDiff = new Tiny_diff();
      }
      
      $Result = $TinyDiff->compare($Old, $New, 'html');
      return $Result;
   }
Beispiel #2
0
 /**
  *
  *
  * @param $Old
  * @param $New
  * @param string $Method
  * @return string
  */
 public function formatDiff($Old, $New, $Method = 'html')
 {
     static $TinyDiff = null;
     if ($TinyDiff === null) {
         require_once dirname(__FILE__) . '/tiny_diff.php';
         $TinyDiff = new Tiny_diff();
     }
     $Result = $TinyDiff->compare($Old, $New, $Method);
     return $Result;
 }