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:
d1e81fe
)
Fix handling of non-unified diffs in wfDiff
author
Andrew Garrett
<werdna@users.mediawiki.org>
Thu, 17 Jul 2008 12:30:40 +0000
(12:30 +0000)
committer
Andrew Garrett
<werdna@users.mediawiki.org>
Thu, 17 Jul 2008 12:30:40 +0000
(12:30 +0000)
includes/GlobalFunctions.php
patch
|
blob
|
history
diff --git
a/includes/GlobalFunctions.php
b/includes/GlobalFunctions.php
index
7dbe0dd
..
9e7b1fa
100644
(file)
--- a/
includes/GlobalFunctions.php
+++ b/
includes/GlobalFunctions.php
@@
-1226,10
+1226,10
@@
function wfDiff( $before, $after, $params = '-u' ) {
// Kill the --- and +++ lines. They're not useful.
$diff_lines = explode( "\n", $diff );
- if (strpos(
'---', $diff_lines[0] )
== 0) {
+ if (strpos(
$diff_lines[0], '---' ) =
== 0) {
unset($diff_lines[0]);
}
- if (strpos(
'+++', $diff_lines[1] )
== 0) {
+ if (strpos(
$diff_lines[1], '+++' ) =
== 0) {
unset($diff_lines[1]);
}