Yaron Koren has submitted this change and it was merged.

Change subject: Another small parsing fix
......................................................................


Another small parsing fix

Change-Id: I4b4f5453f0401f9b126ebf5aa0b0174c318fee95
---
M includes/DT_PageStructure.php
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Yaron Koren: Verified; Looks good to me, approved



diff --git a/includes/DT_PageStructure.php b/includes/DT_PageStructure.php
index cb977d2..3f65f4a 100644
--- a/includes/DT_PageStructure.php
+++ b/includes/DT_PageStructure.php
@@ -61,7 +61,8 @@
                                                $fieldValueXML .= 
$subComponent->toXML( $isSimplified );
                                        }
                                } elseif ( $wgDataTransferViewXMLParseFields ) {
-                                       $fieldValue = $wgParser->parse( 
$fieldValue, $wgTitle, new ParserOptions() )->getText();
+                                       // Avoid table of contents and "edit" 
links
+                                       $fieldValue = $wgParser->parse( 
"__NOTOC__ __NOEDITSECTION__\n" . $fieldValue, $wgTitle, new ParserOptions() 
)->getText();
                                }
 
                                if ( $isSimplified ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/61061
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I4b4f5453f0401f9b126ebf5aa0b0174c318fee95
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DataTransfer
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <[email protected]>
Gerrit-Reviewer: Yaron Koren <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to