Do not use PHP 5.2.0 functions in core, kthx.
authorAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 21 Aug 2008 21:41:30 +0000 (21:41 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 21 Aug 2008 21:41:30 +0000 (21:41 +0000)
includes/Diff.php

index 761fcec..c1775d0 100644 (file)
@@ -87,7 +87,11 @@ class WikiDiff3 {
                $this->from = $newFromIndex = $this->to = $newToIndex = array();
 
                //remove tokens not in both sequences
-               $shared = array_fill_keys($from, false);
+               $shared = array();
+               foreach( $from as $key ) {
+                       $shared[$key] = false;
+               }
+
                foreach($to as $index => &$el) {
                        if(array_key_exists($el, $shared)) {
                                //keep it