Merge "ApiDiscussionToolsPageInfo: Fix fake headings with null name/id"

This commit is contained in:
jenkins-bot 2022-06-29 03:17:32 +00:00 committed by Gerrit Code Review
commit 826fcc2229
6 changed files with 12 additions and 10 deletions

View file

@ -97,6 +97,8 @@ class ApiDiscussionToolsPageInfo extends ApiBase {
$range = new ImmutableRange( $firstHeading->getRootNode(), 0, $firstHeading->getRootNode(), 0 );
$fakeHeading = new HeadingItem( $range, null );
$fakeHeading->setRootNode( $firstHeading->getRootNode() );
$fakeHeading->setName( 'h-' );
$fakeHeading->setId( 'h-' );
array_unshift( $threads, $fakeHeading );
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long