OutputPage: Fix blank line between <html> and <head>
Follows-up a464d1d41 which changed OutputPage::headElement()
to join pieces by a line break instead of hardcoding line breaks
after (some) generated pieces.
This caused a minor regression in the form of a blank line between
<html> and <head> on every page, because I missed the one that
came from this class.
Change-Id: I5e48b852809699b205f4581c833605f3e232610a
This commit is contained in:
parent
29d3feb1d0
commit
f47d1eee0e
2 changed files with 2 additions and 7 deletions
|
|
@ -935,13 +935,7 @@ class Html {
|
|||
$attribs['version'] = $wgHtml5Version;
|
||||
}
|
||||
|
||||
$html = self::openElement( 'html', $attribs );
|
||||
|
||||
if ( $html ) {
|
||||
$html .= "\n";
|
||||
}
|
||||
|
||||
$ret .= $html;
|
||||
$ret .= self::openElement( 'html', $attribs );
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -267,6 +267,7 @@ class WebInstallerOutput {
|
|||
}
|
||||
?>
|
||||
<?php echo Html::htmlHeader( $this->getHeadAttribs() ); ?>
|
||||
|
||||
<head>
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue