dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27ba25b
)
fixes Bug 718: Bad charset in cached pages.
author
Zheng Zhu
<zhengzhu@users.mediawiki.org>
Mon, 18 Oct 2004 18:13:39 +0000
(18:13 +0000)
committer
Zheng Zhu
<zhengzhu@users.mediawiki.org>
Mon, 18 Oct 2004 18:13:39 +0000
(18:13 +0000)
includes/CacheManager.php
patch
|
blob
|
history
diff --git
a/includes/CacheManager.php
b/includes/CacheManager.php
index
ab6c66d
..
e611737
100644
(file)
--- a/
includes/CacheManager.php
+++ b/
includes/CacheManager.php
@@
-92,11
+92,14
@@
class CacheManager {
/* Working directory to/from output */
function loadFromFileCache() {
- global $wgOut;
+ global $wgOut
, $wgMimeType, $wgOutputEncoding, $wgContLanguageCode
;
wfDebug(" loadFromFileCache()\n");
$filename=$this->fileCacheName();
$wgOut->sendCacheControl();
+
+ header( "Content-type: $wgMimeType; charset={$wgOutputEncoding}" );
+ header( "Content-language: $wgContLanguageCode" );
if( $this->useGzip() ) {
if( wfClientAcceptsGzip() ) {