mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
Merge "ApiDiscussionToolsPageInfo: Fix fake headings with null name/id"
This commit is contained in:
commit
826fcc2229
|
@ -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
Loading…
Reference in a new issue