From: Brad Jorsch Date: Mon, 18 Dec 2017 14:53:27 +0000 (-0500) Subject: ApiMain: Fix call to Linker::makeHeadline() X-Git-Tag: 1.31.0-rc.0~1174^2 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=cc02ef9657935a5036cffcf19f965d64827865ff;p=lhc%2Fweb%2Fwiklou.git ApiMain: Fix call to Linker::makeHeadline() It's required that the $attribs parameter also contain the closing '>'. Bug: T183125 Change-Id: Ic3015067a6b1e95e3487a8580e6a9aa8a6c280ed --- diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index edc1a3e7e9..3bda3e8113 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -1933,7 +1933,7 @@ class ApiMain extends ApiBase { $id = Sanitizer::escapeIdForAttribute( 'main/datatypes', Sanitizer::ID_PRIMARY ); $idFallback = Sanitizer::escapeIdForAttribute( 'main/datatypes', Sanitizer::ID_FALLBACK ); $headline = Linker::makeHeadline( min( 6, $level ), - ' class="apihelp-header"', + ' class="apihelp-header">', $id, $header, '', @@ -1961,7 +1961,7 @@ class ApiMain extends ApiBase { $id = Sanitizer::escapeIdForAttribute( 'main/credits', Sanitizer::ID_PRIMARY ); $idFallback = Sanitizer::escapeIdForAttribute( 'main/credits', Sanitizer::ID_FALLBACK ); $headline = Linker::makeHeadline( min( 6, $level ), - ' class="apihelp-header"', + ' class="apihelp-header">', $id, $header, '',