Removed Exception used for debugging. Disabled edit buttons for HTML diff.
authorGuy Van den Broeck <guyvdb@users.mediawiki.org>
Mon, 25 Aug 2008 18:45:29 +0000 (18:45 +0000)
committerGuy Van den Broeck <guyvdb@users.mediawiki.org>
Mon, 25 Aug 2008 18:45:29 +0000 (18:45 +0000)
includes/DifferenceEngine.php
includes/HTMLDiff.php

index 8956402..4f52665 100644 (file)
@@ -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 );
index aa02b7a..13d7702 100644 (file)
@@ -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;