From: Ariel T. Glenn Date: Mon, 22 Jul 2019 07:28:51 +0000 (+0300) Subject: don't load revision text content unless requested to X-Git-Tag: 1.34.0-rc.0~922 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/D%D1%83%D0%BD%D0%B0?a=commitdiff_plain;h=accecbc9a8ff43e12a88361f077dc324979f5c99;p=lhc%2Fweb%2Fwiklou.git don't load revision text content unless requested to Bug: T228614 Change-Id: Idef4d9684560110a16c6a7c074402c5a5a6e59db --- diff --git a/includes/export/XmlDumpWriter.php b/includes/export/XmlDumpWriter.php index 7ee6d850af..85355642bd 100644 --- a/includes/export/XmlDumpWriter.php +++ b/includes/export/XmlDumpWriter.php @@ -359,7 +359,10 @@ class XmlDumpWriter { // Avoid PHP 7.1 warning from passing $this by reference $writer = $this; - $text = $rev->getContent( SlotRecord::MAIN, RevisionRecord::RAW ); + $text = ''; + if ( $contentMode === self::WRITE_CONTENT ) { + $text = $rev->getContent( SlotRecord::MAIN, RevisionRecord::RAW ); + } Hooks::run( 'XmlDumpWriterWriteRevision', [ &$writer, &$out, $row, $text, $rev ] ); $out .= " \n";