From: Guy Van den Broeck Date: Mon, 25 Aug 2008 18:45:29 +0000 (+0000) Subject: Removed Exception used for debugging. Disabled edit buttons for HTML diff. X-Git-Tag: 1.31.0-rc.0~45670 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=a90345247f4638d81b1584064ffa781d92c18e25;p=lhc%2Fweb%2Fwiklou.git Removed Exception used for debugging. Disabled edit buttons for HTML diff. --- diff --git a/includes/DifferenceEngine.php b/includes/DifferenceEngine.php index 89564028e7..4f5266583b 100644 --- a/includes/DifferenceEngine.php +++ b/includes/DifferenceEngine.php @@ -363,6 +363,7 @@ CONTROL; $popts = $wgOut->parserOptions(); $oldTidy = $popts->setTidy( true ); + $popts->setEditSection( false ); $parserOutput = $wgParser->parse( $this->mOldtext, $wgTitle, $popts, true, true, $wgOut->getRevisionId() ); $popts->setTidy( $oldTidy ); diff --git a/includes/HTMLDiff.php b/includes/HTMLDiff.php index aa02b7aab2..13d7702d74 100644 --- a/includes/HTMLDiff.php +++ b/includes/HTMLDiff.php @@ -785,8 +785,6 @@ class TextNodeDiffer { $deletedNodes = array_values($deletedNodes); $nextLeaf->setParent($nextResult->parent); $nextResult->parent->addChildAbsolute($nextLeaf,$nextResult->indexInLastCommonParent); - } else { - throw new Exception("Uh?"); } } ++$this->deletedID;