mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-08 14:25:02 +02:00
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:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user