Merge pull request #26042 from nextcloud/backport/26030/stable21

[stable21] Fix SCSS compiler deprecated function usages
This commit is contained in:
kesselb 2021-03-10 11:04:52 +01:00 committed by GitHub
commit c74cccd12c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -45,7 +45,7 @@ use OCP\IRequest;
use OCP\IUserSession; use OCP\IUserSession;
use ScssPhp\ScssPhp\Compiler; use ScssPhp\ScssPhp\Compiler;
use ScssPhp\ScssPhp\Exception\ParserException; use ScssPhp\ScssPhp\Exception\ParserException;
use ScssPhp\ScssPhp\Formatter\Crunched; use ScssPhp\ScssPhp\OutputStyle;
class AccessibilityController extends Controller { class AccessibilityController extends Controller {
@ -134,8 +134,7 @@ class AccessibilityController extends Controller {
]); ]);
// Continue after throw // Continue after throw
$scss->setIgnoreErrors(true); $scss->setOutputStyle(OutputStyle::COMPRESSED);
$scss->setFormatter(Crunched::class);
// Import theme, variables and compile css4 variables // Import theme, variables and compile css4 variables
try { try {