jenkins-bot has submitted this change and it was merged.

Change subject: Contact parsoid only when necessary for 
FlowUpdateRevisionContentLength
......................................................................


Contact parsoid only when necessary for FlowUpdateRevisionContentLength

Change-Id: I5a46d6bcb17d6fd7126392ef427f8807fde8d710
---
M maintenance/FlowUpdateRevisionContentLength.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Mattflaschen: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/maintenance/FlowUpdateRevisionContentLength.php 
b/maintenance/FlowUpdateRevisionContentLength.php
index 63a4fbd..e4a9c45 100644
--- a/maintenance/FlowUpdateRevisionContentLength.php
+++ b/maintenance/FlowUpdateRevisionContentLength.php
@@ -145,7 +145,7 @@
                if ( $revision->isModerated() && !$revision->isLocked() ) {
                        return 0;
                } else {
-                       return mb_strlen( $revision->getContent( 'wikitext' ) );
+                       return $revision->getContentLength() ?: mb_strlen( 
$revision->getContent( 'wikitext' ) );
                }
        }
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I5a46d6bcb17d6fd7126392ef427f8807fde8d710
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
Gerrit-Reviewer: Mattflaschen <[email protected]>
Gerrit-Reviewer: SG <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to