@@ 55-64 (lines=10) @@ | ||
52 | $compression = strtolower(PSI_JS_COMPRESSION); |
|
53 | } |
|
54 | switch ($compression) { |
|
55 | case "normal": |
|
56 | if (file_exists($scriptmin) && is_readable($scriptmin)) { |
|
57 | $filecontent = file_get_contents($scriptmin); |
|
58 | echo $filecontent; |
|
59 | } elseif (file_exists($scriptjs) && is_readable($scriptjs)) { |
|
60 | $filecontent = file_get_contents($scriptjs); |
|
61 | $packer = new JavaScriptPacker($filecontent); |
|
62 | echo $packer->pack(); |
|
63 | } |
|
64 | break; |
|
65 | case "none": |
|
66 | if (file_exists($scriptjs) && is_readable($scriptjs)) { |
|
67 | $filecontent = file_get_contents($scriptjs); |
|
@@ 65-74 (lines=10) @@ | ||
62 | echo $packer->pack(); |
|
63 | } |
|
64 | break; |
|
65 | case "none": |
|
66 | if (file_exists($scriptjs) && is_readable($scriptjs)) { |
|
67 | $filecontent = file_get_contents($scriptjs); |
|
68 | $packer = new JavaScriptPacker($filecontent, 0); |
|
69 | echo $packer->pack(); |
|
70 | } elseif (file_exists($scriptmin) && is_readable($scriptmin)) { |
|
71 | $filecontent = file_get_contents($scriptmin); |
|
72 | echo $filecontent; |
|
73 | } |
|
74 | break; |
|
75 | default: |
|
76 | if (file_exists($scriptjs) && is_readable($scriptjs)) { |
|
77 | $filecontent = file_get_contents($scriptjs); |