diff options
author | Michal Čihař <mcihar@suse.cz> | 2013-10-02 16:12:01 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2013-10-02 16:12:01 +0400 |
commit | 785c33261a778a4cbbdf31cd72a6a5d951f20139 (patch) | |
tree | c7bcf67f1d7feca9c5a4080de27e651e40462e7f /js/get_scripts.js.php | |
parent | bbedf41180c06fa3c92137a1a8018a8446725465 (diff) |
We no longer minify the code
Diffstat (limited to 'js/get_scripts.js.php')
-rw-r--r-- | js/get_scripts.js.php | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/js/get_scripts.js.php b/js/get_scripts.js.php index 853f1c80f0..4ba2f0d7cc 100644 --- a/js/get_scripts.js.php +++ b/js/get_scripts.js.php @@ -36,14 +36,6 @@ if (! empty($_GET['scripts']) && is_array($_GET['scripts'])) { $script_name .= DIRECTORY_SEPARATOR . $filename; } } - // if error reporting is enabled serve the unminified files - if($GLOBALS['cfg']['ErrorReporting']) { - $unminified = "sources" . DIRECTORY_SEPARATOR . $script_name; - // only serve the unminified files if they exist - if (is_readable($unminified)) { - $script_name = $unminified; - } - } // Output file contents if (preg_match("@\.js$@", $script_name) && is_readable($script_name)) { |