Merge branch 'MDL-57127-master' of git://github.com/FMCorz/moodle
This commit is contained in:
@@ -1573,6 +1573,10 @@ class theme_config {
|
||||
$treeprocessor = $this->get_css_tree_post_processor();
|
||||
$needsparsing = !empty($treeprocessor) || !empty($this->rtlmode);
|
||||
if ($needsparsing) {
|
||||
|
||||
// We might need more memory to do this, so let's play safe.
|
||||
raise_memory_limit(MEMORY_EXTRA);
|
||||
|
||||
$parser = new core_cssparser($css);
|
||||
$csstree = $parser->parse();
|
||||
unset($parser);
|
||||
|
||||
Reference in New Issue
Block a user