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:
8806369
)
Workaround for runJobs CategoryTree issue:
author
Brion Vibber
<brion@users.mediawiki.org>
Tue, 18 Mar 2008 21:45:18 +0000
(21:45 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Tue, 18 Mar 2008 21:45:18 +0000
(21:45 +0000)
* Don't bloat $this->mStripList on every setHook() call.
It adds up in batch processing until we end up with regex errors!
includes/Parser.php
patch
|
blob
|
history
diff --git
a/includes/Parser.php
b/includes/Parser.php
index
00b8900
..
8b2eb0f
100644
(file)
--- a/
includes/Parser.php
+++ b/
includes/Parser.php
@@
-3843,7
+3843,9
@@
class Parser
$tag = strtolower( $tag );
$oldVal = isset( $this->mTagHooks[$tag] ) ? $this->mTagHooks[$tag] : null;
$this->mTagHooks[$tag] = $callback;
- $this->mStripList[] = $tag;
+ if( !in_array( $tag, $this->mStripList ) ) {
+ $this->mStripList[] = $tag;
+ }
return $oldVal;
}