Merge "ApiParse: When querying TOC sections, also return whether it should be hidden"
This commit is contained in:
commit
01beedea28
1 changed files with 1 additions and 0 deletions
|
|
@ -573,6 +573,7 @@ class ApiParse extends ApiBase {
|
|||
}
|
||||
if ( isset( $prop['sections'] ) ) {
|
||||
$result_array['sections'] = $p_result->getSections();
|
||||
$result_array['hidetoc'] = !$p_result->getTOCHTML();
|
||||
}
|
||||
if ( isset( $prop['parsewarnings'] ) ) {
|
||||
$result_array['parsewarnings'] = $p_result->getWarnings();
|
||||
|
|
|
|||
Loading…
Reference in a new issue