Florianschmidtwelzow has uploaded a new change for review. https://gerrit.wikimedia.org/r/263900
Change subject: Replace usages of WikiPage::getRawText ...................................................................... Replace usages of WikiPage::getRawText Bug: T122754 Change-Id: Ia624ffeb2d9b1862f943f7c3103df417d90001c5 --- M IfTemplates.class.php 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/IfTemplates refs/changes/00/263900/1 diff --git a/IfTemplates.class.php b/IfTemplates.class.php index ddc11bb..537850e 100644 --- a/IfTemplates.class.php +++ b/IfTemplates.class.php @@ -35,7 +35,7 @@ $id = $lc->getGoodLinkID( $pdbk ); if ( $id != 0 ) { $parser->mOutput->addLink( $title, $id ); - $text = WikiPage::newFromId( $id )->getRawText(); + $text = WikiPage::newFromId( $id )->getContent( Revision::RAW ); if ( self::isTemplates ( $parser, $frame, $text ) ) { return $then; } else { @@ -48,7 +48,7 @@ $id = $title->getArticleID(); $parser->mOutput->addLink( $title, $id ); if ( $id ) { - $text = WikiPage::newFromId( $id )->getRawText(); + $text = WikiPage::newFromId( $id )->getContent( Revision::RAW ); if ( self::isTemplates ( $parser, $frame, $text ) ) { return $then; } else { -- To view, visit https://gerrit.wikimedia.org/r/263900 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia624ffeb2d9b1862f943f7c3103df417d90001c5 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/IfTemplates Gerrit-Branch: master Gerrit-Owner: Florianschmidtwelzow <florian.schmidt.stargatewis...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits