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 "mediawiki.api: Support assert parameter in getToken and postWithToken"
[lhc/web/wiklou.git]
/
includes
/
parser
/
Preprocessor_DOM.php
diff --git
a/includes/parser/Preprocessor_DOM.php
b/includes/parser/Preprocessor_DOM.php
index
8416ac3
..
2edb79a
100644
(file)
--- a/
includes/parser/Preprocessor_DOM.php
+++ b/
includes/parser/Preprocessor_DOM.php
@@
-1033,7
+1033,7
@@
class PPFrame_DOM implements PPFrame {
if ( $arg instanceof PPNode ) {
$arg = $arg->node;
}
- if ( !$xpath ) {
+ if ( !$xpath
|| $xpath->document !== $arg->ownerDocument
) {
$xpath = new DOMXPath( $arg->ownerDocument );
}