From cc02ef9657935a5036cffcf19f965d64827865ff Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Mon, 18 Dec 2017 09:53:27 -0500 Subject: [PATCH] ApiMain: Fix call to Linker::makeHeadline() It's required that the $attribs parameter also contain the closing '>'. Bug: T183125 Change-Id: Ic3015067a6b1e95e3487a8580e6a9aa8a6c280ed --- includes/api/ApiMain.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, '', -- 2.20.1