aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Linker.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/Linker.php')
-rw-r--r--includes/Linker.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/Linker.php b/includes/Linker.php
index f58f11d0edab..81d289bb7262 100644
--- a/includes/Linker.php
+++ b/includes/Linker.php
@@ -1241,7 +1241,7 @@ class Linker {
// zero-width assertions optional, so wrap them in a non-capturing
// group.
'!(?:(?<=(.)))?/\*\s*(.*?)\s*\*/(?:(?=(.)))?!',
- function ( $match ) use ( $title, $local, $wikiId, &$append ) {
+ static function ( $match ) use ( $title, $local, $wikiId, &$append ) {
global $wgLang;
// Ensure all match positions are defined
@@ -1343,7 +1343,7 @@ class Linker {
\]\]
([^[]*) # 3. link trail (the text up until the next link)
/x',
- function ( $match ) use ( $title, $local, $wikiId ) {
+ static function ( $match ) use ( $title, $local, $wikiId ) {
$services = MediaWikiServices::getInstance();
$medians = '(?:';