X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FOutputPage.php;h=b7341e3b7a2a8b90e65de3bd9190cbb6ad8c04ab;hp=58b025a655f6946bb945caf9f2da4a85ab17be72;hb=c698fe313e6c067ad1bb156885558d1397d65b7f;hpb=77cc011b9c8d24d191b2094e81db13c7ab0ff844
diff --git a/includes/OutputPage.php b/includes/OutputPage.php
index 58b025a655..b7341e3b7a 100644
--- a/includes/OutputPage.php
+++ b/includes/OutputPage.php
@@ -54,7 +54,8 @@ class OutputPage extends ContextSource {
protected $mCanonicalUrl = false;
/**
- * @var string The contents of
*/
+ * @var string The contents of
+ */
private $mPageTitle = '';
/**
@@ -3012,6 +3013,7 @@ class OutputPage extends ContextSource {
* @return string The doctype, opening "", and head element.
*/
public function headElement( Skin $sk, $includeStyle = true ) {
+ $config = $this->getConfig();
$userdir = $this->getLanguage()->getDir();
$sitedir = MediaWikiServices::getInstance()->getContentLanguage()->getDir();
@@ -3026,7 +3028,7 @@ class OutputPage extends ContextSource {
$this->setHTMLTitle( $this->msg( 'pagetitle', $this->getPageTitle() )->inContentLanguage() );
}
- if ( !Html::isXmlMimeType( $this->getConfig()->get( 'MimeType' ) ) ) {
+ if ( !Html::isXmlMimeType( $config->get( 'MimeType' ) ) ) {
// Add
// This should be before since it defines the charset used by
// text including the text inside .
@@ -3044,18 +3046,15 @@ class OutputPage extends ContextSource {
$pieces = array_merge( $pieces, array_values( $this->getHeadLinksArray() ) );
$pieces = array_merge( $pieces, array_values( $this->mHeadItems ) );
+ // This library is intended to run on older browsers that MediaWiki no longer
+ // supports as Grade A. For these Grade C browsers, we provide an experience
+ // using only HTML and CSS. But, where standards-compliant browsers are able to
+ // style unknown HTML elements without issue, old IE ignores these styles.
+ // The html5shiv library fixes that.
// Use an IE conditional comment to serve the script only to old IE
+ $shivUrl = $config->get( 'ResourceBasePath' ) . '/resources/lib/html5shiv/html5shiv.js';
$pieces[] = '';
$pieces[] = Html::closeElement( 'head' );