* (bug 349) Fix for some numeric differences not being highlighted
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 15 Dec 2005 22:41:15 +0000 (22:41 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 15 Dec 2005 22:41:15 +0000 (22:41 +0000)
  patch by Andrius Ramanauskas
http://bugzilla.wikimedia.org/attachment.cgi?id=1190

RELEASE-NOTES
includes/DifferenceEngine.php

index fd03333..adcee85 100644 (file)
@@ -323,6 +323,8 @@ fully support the editing toolbar, but was found to be too confusing.
 * Added plugin interface for dumpBackup, so additional filters and output
   sink types can be registered at runtime from an extension
 * (bug 4279) Small correction to LanguageDa.php
+* (bug 349) Fix for some numeric differences not being highlighted
+  patch by Andrius Ramanauskas
 
 
 === Caveats ===
index 77e9583..3de028f 100644 (file)
@@ -654,14 +654,14 @@ class _DiffEngine
 
                // Skip leading common lines.
                for ($skip = 0; $skip < $n_from && $skip < $n_to; $skip++) {
-                       if ($from_lines[$skip] != $to_lines[$skip])
+                       if ($from_lines[$skip] !== $to_lines[$skip])
                                break;
                        $this->xchanged[$skip] = $this->ychanged[$skip] = false;
                }
                // Skip trailing common lines.
                $xi = $n_from; $yi = $n_to;
                for ($endskip = 0; --$xi > $skip && --$yi > $skip; $endskip++) {
-                       if ($from_lines[$xi] != $to_lines[$yi])
+                       if ($from_lines[$xi] !== $to_lines[$yi])
                                break;
                        $this->xchanged[$xi] = $this->ychanged[$yi] = false;
                }