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

Change subject: Ignore parsers without extCite
......................................................................


Ignore parsers without extCite

If a parser does not include the extCite property, ignore
the call and do not check references.

Depends on Ic77aa79aa6e2bf2a9ec00be4cc775d0123bed91a

Bug: T105598
Change-Id: Ic2257eef94fd73932f1e95a84b3b8b0eb245bafc
---
M Cite_body.php
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  Bartosz Dziewoński: Verified; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/Cite_body.php b/Cite_body.php
index 0db37fd..f1b1445 100644
--- a/Cite_body.php
+++ b/Cite_body.php
@@ -1057,6 +1057,9 @@
         * @return bool
         */
        function checkRefsNoReferences( $afterParse, &$parser, &$text ) {
+               if ( is_null( $parser->extCite ) ) {
+                       return true;
+               }
                if ( $parser->extCite !== $this ) {
                        return $parser->extCite->checkRefsNoReferences( 
$afterParse, $parser, $text );
                }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic2257eef94fd73932f1e95a84b3b8b0eb245bafc
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Cite
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <w...@physikerwelt.de>
Gerrit-Reviewer: Bartosz Dziewoński <matma....@gmail.com>
Gerrit-Reviewer: Jackmcbarn <jackmcb...@gmail.com>
Gerrit-Reviewer: Physikerwelt <w...@physikerwelt.de>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to