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:
0ab874b
)
Stop doing $that = $this in includes/parser
author
Ricordisamoa
<ricordisamoa@openmailbox.org>
Thu, 11 Feb 2016 08:40:54 +0000
(09:40 +0100)
committer
Ricordisamoa
<ricordisamoa@openmailbox.org>
Thu, 11 Feb 2016 08:40:54 +0000
(09:40 +0100)
Closures support $this as of PHP 5.4
Change-Id: Iace7ef43b17e8100f6bd71b4e23bad39cba87c0d
includes/parser/Parser.php
patch
|
blob
|
history
diff --git
a/includes/parser/Parser.php
b/includes/parser/Parser.php
index
f947285
..
bec83e1
100644
(file)
--- a/
includes/parser/Parser.php
+++ b/
includes/parser/Parser.php
@@
-6408,9
+6408,8
@@
class Parser {
}
$this->mInParse = true;
- $that = $this;
- $recursiveCheck = new ScopedCallback( function() use ( $that ) {
- $that->mInParse = false;
+ $recursiveCheck = new ScopedCallback( function() {
+ $this->mInParse = false;
} );
return $recursiveCheck;