From: Alexandre Emsenhuber Date: Tue, 28 Oct 2008 12:41:51 +0000 (+0000) Subject: Use $wgJsMimeType for JavaScript's Mime type X-Git-Tag: 1.31.0-rc.0~44539 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=16a282d24416f03bf8665d9dbf473a9137c04b8b;p=lhc%2Fweb%2Fwiklou.git Use $wgJsMimeType for JavaScript's Mime type --- diff --git a/includes/ChangesList.php b/includes/ChangesList.php index 48c748592b..f453687e1d 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -394,14 +394,14 @@ class EnhancedChangesList extends ChangesList { * @ return string */ public function beginRecentChangesList() { - global $wgStylePath, $wgStyleVersion; + global $wgStylePath, $wgJsMimeType, $wgStyleVersion; $this->rc_cache = array(); $this->rcMoveIndex = 0; $this->rcCacheIndex = 0; $this->lastdate = ''; $this->rclistOpen = false; $script = Xml::tags( 'script', array( - 'type' => 'text/javascript', + 'type' => $wgJsMimeType, 'src' => $wgStylePath . "/common/enhancedchanges.js?$wgStyleVersion" ), '' ); return $script; }