dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
81a7885
)
Merge "parser: Don't unnecessarily add and remove a pipe "
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Wed, 16 May 2018 16:51:38 +0000
(16:51 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Wed, 16 May 2018 16:51:38 +0000
(16:51 +0000)
includes/parser/Parser.php
patch
|
blob
|
history
diff --git
a/includes/parser/Parser.php
b/includes/parser/Parser.php
index
b66031c
..
ac20b6a
100644
(file)
--- a/
includes/parser/Parser.php
+++ b/
includes/parser/Parser.php
@@
-5087,17
+5087,15
@@
class Parser {
} else {
// Guess not, consider it as caption.
wfDebug( "$parameterMatch failed parameter validation\n" );
- $label =
'|' .
$parameterMatch;
+ $label = $parameterMatch;
}
}
} else {
// Last pipe wins.
- $label =
'|' .
$parameterMatch;
+ $label = $parameterMatch;
}
}
- // Remove the pipe.
- $label = substr( $label, 1 );
}
$ig->add( $title, $label, $alt, $link, $handlerOptions );