summaryrefslogtreecommitdiff
path: root/lib/exe/js.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-05-25 16:40:00 +0200
committerAndreas Gohr <andi@splitbrain.org>2006-05-25 16:40:00 +0200
commitcf6894df38261b3b92c75d441bbe0a0ba58d963e (patch)
tree8ea05553b2d36f0e8aa65f5778a7f71ed721fa6a /lib/exe/js.php
parentfb53bfe26d4ed0fd3e63d17c7b02d9c8d0e98fb4 (diff)
downloadrpg-cf6894df38261b3b92c75d441bbe0a0ba58d963e.tar.gz
rpg-cf6894df38261b3b92c75d441bbe0a0ba58d963e.tar.bz2
more mediamanager fixes
This fixes some styling issues, the cookie handling and a bug in the JavaScript caching mechanism. darcs-hash:20060525144000-7ad00-2f0b673d4f747c979f460e4e927a50eeeae81ec1.gz
Diffstat (limited to 'lib/exe/js.php')
-rw-r--r--lib/exe/js.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/exe/js.php b/lib/exe/js.php
index 583faa5ad..7ff60710c 100644
--- a/lib/exe/js.php
+++ b/lib/exe/js.php
@@ -35,7 +35,7 @@ function js_out(){
$write = (bool) $_REQUEST['write']; // writable?
// The generated script depends on some dynamic options
- $cache = getCacheName('scripts'.$edit.$write,'.js');
+ $cache = getCacheName('scripts'.$edit.'x'.$write,'.js');
// Array of needed files
$files = array(
@@ -66,6 +66,7 @@ function js_out(){
header('Pragma: public');
if(js_cacheok($cache,array_merge($files,$plugins))){
http_conditionalRequest(filemtime($cache));
+ if($conf['allowdebug']) header("X-CacheUsed: $cache");
readfile($cache);
return;
} else {