/**
  * Compares two revisions of the page
  */
 function compareVersion()
 {
     global $lng;
     if (!$this->getEnableEditing()) {
         return;
     }
     $tpl = new ilTemplate("tpl.page_compare.html", true, true, "Services/COPage");
     $compare = $this->obj->compareVersion($_POST["left"], $_POST["right"]);
     // left page
     $lpage = $compare["l_page"];
     $lpage_gui = new ilPageObjectGUI("wpg");
     $lpage_gui->setOutputMode(IL_PAGE_PREVIEW);
     $lpage_gui->setPageObject($lpage);
     $lpage_gui->setPreventHTMLUnmasking(true);
     $lpage_gui->setPresentationTitle($this->getPresentationTitle());
     $lpage_gui->setCompareMode(true);
     $lhtml = $lpage_gui->showPage();
     $lhtml = $this->replaceDiffTags($lhtml);
     $lhtml = str_replace("&lt;br /&gt;", "<br />", $lhtml);
     $tpl->setVariable("LEFT", $lhtml);
     // right page
     $rpage = $compare["r_page"];
     $rpage_gui = new ilPageObjectGUI("wpg");
     $rpage_gui->setOutputMode(IL_PAGE_PREVIEW);
     $rpage_gui->setPageObject($rpage);
     $rpage_gui->setPreventHTMLUnmasking(true);
     $rpage_gui->setPresentationTitle($this->getPresentationTitle());
     $rpage_gui->setCompareMode(true);
     $rhtml = $rpage_gui->showPage();
     $rhtml = $this->replaceDiffTags($rhtml);
     $rhtml = str_replace("&lt;br /&gt;", "<br />", $rhtml);
     $tpl->setVariable("RIGHT", $rhtml);
     $tpl->setVariable("TXT_NEW", $lng->txt("cont_pc_new"));
     $tpl->setVariable("TXT_MODIFIED", $lng->txt("cont_pc_modified"));
     $tpl->setVariable("TXT_DELETED", $lng->txt("cont_pc_deleted"));
     //var_dump($left);
     //var_dump($right);
     return $tpl->get();
 }