fixes #951 update JShrink to version 1.4.0

compatibility with PHP 8.0 but no longer to <5.6 (even if it still work on a 5.4 installation)
This commit is contained in:
plegall
2021-08-02 19:15:53 +02:00
parent a516a5e945
commit c64efe6ecb
2 changed files with 522 additions and 378 deletions
+1 -1
View File
@@ -1993,7 +1993,7 @@ final class FileCombiner
if (strpos($file, '.min')===false and strpos($file, '.packed')===false )
{
require_once(PHPWG_ROOT_PATH.'include/jshrink.class.php');
try { $js = JShrink_Minifier::minify($js); } catch(Exception $e) {}
try { $js = JShrink\Minifier::minify($js); } catch(Exception $e) {}
}
return trim($js, " \t\r\n;").";\n";
}