Use new stable API for subtitle modification

Bug: T324876
Depends-On: Id8436324e2ae2fd9f488b65b3b7bfc19611870d1
Change-Id: I8e538939a6d7d4474f2e96b93040f3c68c2f98ec
This commit is contained in:
Jon Robson 2022-12-09 14:37:02 -08:00 committed by Jdlrobson
parent 15c53f0576
commit 612a307d68

View file

@ -604,8 +604,8 @@ ve.init.mw.ArticleTarget.prototype.replacePageContent = function (
$( '#catlinks' ).replaceWith( $categories );
}
// eslint-disable-next-line no-jquery/no-html
$( '#contentSub, .minerva__subtitle' ).html( contentSub );
mw.util.clearSubtitle();
mw.util.addSubtitle( contentSub );
this.setRealRedirectInterface();