summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authortof <>2008-03-13 11:08:35 +0000
committertof <>2008-03-13 11:08:35 +0000
commit074c13520bfc8c29a43acf201329f06158868829 (patch)
treeab6cfa19a99b5fcd4ee8862b1f39f7ec1eb7f0e3 /framework
parent988f3d952b74ea6cd86ebffbbf83c581d8d3aa06 (diff)
(Re)Fixed bug in clientscript. Was lost in last changeset
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/Javascripts/clientscripts.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/framework/Web/Javascripts/clientscripts.php b/framework/Web/Javascripts/clientscripts.php
index d0bb8af1..046ae627 100644
--- a/framework/Web/Javascripts/clientscripts.php
+++ b/framework/Web/Javascripts/clientscripts.php
@@ -179,12 +179,12 @@ function save_javascript($content, $filename)
*/
function get_saved_javascript($filename)
{
+ $fn=$filename;
if(supports_gzip_encoding())
- $filename .= '.gz';
- if(is_file($filename))
- return file_get_contents($filename);
- else
- error_log('Prado client script: no such file '.$filename);
+ $fn .= '.gz';
+ if(!is_file($fn))
+ save_javascript(get_javascript_code(true), $filename);
+ return file_get_contents($fn);
}
/**