MDL-61394 core_scss: Null coalesce path to sassc setting

This commit is contained in:
Cameron Ball 2018-02-20 10:33:14 +08:00 committed by Andrew Nicols
parent 2b32b1fea8
commit 40e53599b3

View File

@ -111,7 +111,7 @@ class core_scss extends \Leafo\ScssPhp\Compiler {
public function compile($code, $path = null) {
global $CFG;
$pathtosassc = trim($CFG->pathtosassc);
$pathtosassc = trim($CFG->pathtosassc ?? '');
if (!empty($pathtosassc) && is_executable($pathtosassc) && !is_dir($pathtosassc)) {
$process = proc_open(