<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -53,7 +53,7 @@ class Wikidot_Util_Diff {
 		$file_from = tempnam(WIKIDOT_ROOT . '/tmp', 'diff-');
 		$file_to = tempnam(WIKIDOT_ROOT . '/tmp', 'diff-');
 		file_put_contents($file_from, $fromString);
-		file_put_contents($to_from, $toString);
+		file_put_contents($file_to, $toString);
 		
 		$from_arg = escapeshellarg($file_from);
 		$to_arg = escapeshellarg($file_to);
@@ -63,6 +63,8 @@ class Wikidot_Util_Diff {
 		
 		$result_lines = array();
 		exec($cmd, $result_lines);
+        array_shift($result_lines);
+        array_shift($result_lines);
 		
 		unlink($file_from);
 		unlink($file_to);</diff>
      <filename>php/utils/Wikidot_Util_Diff.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d4eba5b4c27fafad58670cf7b2a0ba2ef9b9cee1</id>
    </parent>
  </parents>
  <author>
    <name>Piotr Gabryjeluk</name>
    <email>piotr@wikidot.com</email>
  </author>
  <url>http://github.com/gabrys/wikidot/commit/476e99d5bf755fcd4f69a079bcb79238e71f2087</url>
  <id>476e99d5bf755fcd4f69a079bcb79238e71f2087</id>
  <committed-date>2009-06-23T03:44:06-07:00</committed-date>
  <authored-date>2009-06-23T03:44:06-07:00</authored-date>
  <message>fixed diffs (http://www.wikidot.org/bug:1)</message>
  <tree>5ceecd33af81e637ac11897feab762b156c97f9f</tree>
  <committer>
    <name>Piotr Gabryjeluk</name>
    <email>piotr@wikidot.com</email>
  </committer>
</commit>
