dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
968da62
)
Do not use PHP 5.2.0 functions in core, kthx.
author
Aryeh Gregor
<simetrical@users.mediawiki.org>
Thu, 21 Aug 2008 21:41:30 +0000
(21:41 +0000)
committer
Aryeh Gregor
<simetrical@users.mediawiki.org>
Thu, 21 Aug 2008 21:41:30 +0000
(21:41 +0000)
includes/Diff.php
patch
|
blob
|
history
diff --git
a/includes/Diff.php
b/includes/Diff.php
index
761fcec
..
c1775d0
100644
(file)
--- 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