dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Make 'groups' a data model in the FiltersViewModel"
[lhc/web/wiklou.git]
/
includes
/
parser
/
LinkHolderArray.php
diff --git
a/includes/parser/LinkHolderArray.php
b/includes/parser/LinkHolderArray.php
index
b32f43b
..
d2a0a1a
100644
(file)
--- a/
includes/parser/LinkHolderArray.php
+++ b/
includes/parser/LinkHolderArray.php
@@
-267,10
+267,8
@@
class LinkHolderArray {
* @param string $text
*/
public function replace( &$text ) {
* @param string $text
*/
public function replace( &$text ) {
-
$this->replaceInternal( $text );
$this->replaceInterwiki( $text );
$this->replaceInternal( $text );
$this->replaceInterwiki( $text );
-
}
/**
}
/**
@@
-414,7
+412,6
@@
class LinkHolderArray {
$replacer->cb(),
$text
);
$replacer->cb(),
$text
);
-
}
/**
}
/**
@@
-614,10
+611,9
@@
class LinkHolderArray {
* @return string
*/
public function replaceText( $text ) {
* @return string
*/
public function replaceText( $text ) {
-
$text = preg_replace_callback(
'/<!--(LINK|IWLINK) (.*?)-->/',
$text = preg_replace_callback(
'/<!--(LINK|IWLINK) (.*?)-->/',
- [
&
$this, 'replaceTextCallback' ],
+ [ $this, 'replaceTextCallback' ],
$text );
return $text;
$text );
return $text;