LoadRevisions($page["tag"]);
$bodyA = explode("\n", $revisionarray[0]["body"]);
$bodyB = explode("\n", $revisionarray[1]["body"]);
$added = array_diff($bodyA, $bodyB);
$deleted = array_diff($bodyB, $bodyA);
if ($added)
{
$xmlitems .= "
Additions:
\n";
$xmlitems .= "".$this->Format(implode("\n", $added), "rdf")."
";
}
if ($deleted)
{
$xmlitems .= "
Deletions:
\n";
$xmlitems .= "".$this->Format(implode("\n", $deleted), "rdf")."
";
}
if (!$added && !$deleted)
{
$xmlitems .= "
No differences.";
}
$xmlitems .= "]]>";
$xmlitems .= "\n\t