mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Disable compression and inclusion of compressed ACP js
This commit is contained in:
parent
877fe2b3a8
commit
fb12e4418f
@ -1,6 +1,6 @@
|
|||||||
{include file='header' pageTitle='chat.acp.log.title'}
|
{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 === ''}
|
{if $errorField === ''}
|
||||||
<script data-relocate="true">
|
<script data-relocate="true">
|
||||||
|
@ -65,17 +65,6 @@
|
|||||||
}
|
}
|
||||||
echo <<<EOT
|
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
|
Checking PHP for Syntax Errors
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user