1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Disable compression and inclusion of compressed ACP js

This commit is contained in:
Tim Düsterhus 2013-09-08 21:00:43 +02:00
parent 877fe2b3a8
commit fb12e4418f
2 changed files with 1 additions and 12 deletions

View File

@ -1,6 +1,6 @@
{include file='header' pageTitle='chat.acp.log.title'}
<script data-relocate="true" src="{$__wcf->getPath('chat')}acp/js/be.bastelstu.Chat.ACP.Log{if !ENABLE_DEBUG_MODE}.min{/if}.js?version={PACKAGE_VERSION|rawurlencode}"></script>
<script data-relocate="true" src="{$__wcf->getPath('chat')}acp/js/be.bastelstu.Chat.ACP.Log.js?version={PACKAGE_VERSION|rawurlencode}"></script>
{if $errorField === ''}
<script data-relocate="true">

View File

@ -65,17 +65,6 @@
}
echo <<<EOT
Compressing ACP-JavaScript
--------------------------
EOT;
foreach (glob('file/acp/js/*.js', GLOB_BRACE) as $jsFile) {
echo $jsFile."\n";
passthru('uglifyjs '.escapeshellarg($jsFile).' --screw-ie8 -m -c --verbose --comments -o '.escapeshellarg(substr($jsFile, 0, -3).'.min.js'), $code);
if ($code != 0) exit($code);
}
echo <<<EOT
Checking PHP for Syntax Errors
------------------------------