Skip to content

Commit

Permalink
Merge branch 'MDL-50258_master' of git://github.com/dmonllao/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Dec 7, 2015
2 parents 0575c5a + a75f1db commit 6c0bf99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/outputlib.php
Expand Up @@ -1078,6 +1078,7 @@ protected function get_css_files($themedesigner) {
* @return bool|string Return false when the compilation failed. Else the compiled string.
*/
protected function get_css_content_from_less($themedesigner) {
global $CFG;

$lessfile = $this->lessfile;
if (!$lessfile || !is_readable($this->dir . '/less/' . $lessfile . '.less')) {
Expand Down Expand Up @@ -1106,7 +1107,8 @@ protected function get_css_content_from_less($themedesigner) {
if ($themedesigner) {
// Add the sourceMap inline to ensure that it is atomically generated.
$options['sourceMap'] = true;
$options['sourceRoot'] = 'theme';
$options['sourceMapBasepath'] = $CFG->dirroot;
$options['sourceMapRootpath'] = $CFG->wwwroot;
}

// Instantiate the compiler.
Expand Down

0 comments on commit 6c0bf99

Please sign in to comment.