From 356e65521357948136002b81e656883d704efa7d Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Thu, 21 Aug 2008 21:41:30 +0000 Subject: [PATCH] Do not use PHP 5.2.0 functions in core, kthx. --- includes/Diff.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/Diff.php b/includes/Diff.php index 761fcece22..c1775d05f4 100644 --- a/includes/Diff.php +++ b/includes/Diff.php @@ -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 -- 2.20.1