diff options
Diffstat (limited to 'includes/StreamFile.php')
-rw-r--r-- | includes/StreamFile.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/StreamFile.php b/includes/StreamFile.php index dc653e57..8ecaa4f0 100644 --- a/includes/StreamFile.php +++ b/includes/StreamFile.php @@ -31,6 +31,9 @@ function wfStreamFile( $fname ) { header('Content-type: application/x-wiki'); } + global $wgContLanguageCode; + header( "Content-Disposition: inline;filename*=utf-8'$wgContLanguageCode'" . urlencode( basename( $fname ) ) ); + if ( !empty( $_SERVER['HTTP_IF_MODIFIED_SINCE'] ) ) { $modsince = preg_replace( '/;.*$/', '', $_SERVER['HTTP_IF_MODIFIED_SINCE'] ); $sinceTime = strtotime( $modsince ); @@ -69,4 +72,4 @@ function wfGetType( $filename ) { } } -?> + |