Merge "ApiParse: When querying TOC sections, also return whether it should be hidden"

This commit is contained in:
jenkins-bot 2022-06-15 20:38:35 +00:00 committed by Gerrit Code Review
commit 01beedea28

View file

@ -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();