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