mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
ApiDiscussionToolsEdit: Use existing $this->commentParser reference
Change-Id: I3e2b907103372e05de9035ab8058c0766cf39819
This commit is contained in:
parent
f3f262a2a3
commit
8bb41c9fb2
|
@ -223,8 +223,7 @@ class ApiDiscussionToolsEdit extends ApiBase {
|
|||
|
||||
$container = DOMCompat::getBody( $doc );
|
||||
|
||||
$threadItemSet = MediaWikiServices::getInstance()->getService( 'DiscussionTools.CommentParser' )
|
||||
->parse( $container, $title->getTitleValue() );
|
||||
$threadItemSet = $this->commentParser->parse( $container, $title->getTitleValue() );
|
||||
|
||||
if ( $commentId ) {
|
||||
$comment = $threadItemSet->findCommentById( $commentId );
|
||||
|
|
Loading…
Reference in a new issue