diff options
author | wei <> | 2007-04-05 07:46:04 +0000 |
---|---|---|
committer | wei <> | 2007-04-05 07:46:04 +0000 |
commit | 791acbbebad01a33cce22209ea561b282ee876e4 (patch) | |
tree | 0beb32aa1d311b0c7df66dd0bff835642351e82e /framework/Web/Javascripts | |
parent | b99fd37ad7a3cae497b5242e5537f508c03f5585 (diff) |
adds TClientScriptLoader
Diffstat (limited to 'framework/Web/Javascripts')
-rw-r--r-- | framework/Web/Javascripts/clientscripts.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/Web/Javascripts/clientscripts.php b/framework/Web/Javascripts/clientscripts.php index 21da56bf..f810901b 100644 --- a/framework/Web/Javascripts/clientscripts.php +++ b/framework/Web/Javascripts/clientscripts.php @@ -74,7 +74,7 @@ function get_script_requests($max=25) */
function get_package_files($package_file, $request)
{
- list($packages, $dependencies) = @include($package_file);
+ list($packages, $dependencies) = include($package_file);
if(!(is_array($packages) && is_array($dependencies)))
{
error_log('Prado client script: invalid package file '.$package_file);
@@ -240,6 +240,9 @@ function print_headers() */
function supports_gzip_encoding()
{
+ if(isset($_GET['gzip']) && $_GET['gzip']==='false')
+ return false;
+
if (isset($_SERVER['HTTP_ACCEPT_ENCODING']))
{
$encodings = explode(',', strtolower(preg_replace("/\s+/", "", $_SERVER['HTTP_ACCEPT_ENCODING'])));
|