MDL-56042 output: Post process with tree structure always returns CSS

A certain combination of booleans could cause some of the processes
not to take effect as the tree was not converted back into a string.
This commit is contained in:
Frédéric Massart
2016-09-28 09:58:47 +01:00
committed by Dan Poltawski
parent 14d6945e65
commit d8f90ec628
+8 -7
View File
@@ -1556,15 +1556,16 @@ class theme_config {
$parser = new core_cssparser($css);
$csstree = $parser->parse();
unset($parser);
}
if ($this->rtlmode) {
$this->rtlize($csstree);
}
if ($this->rtlmode) {
$this->rtlize($csstree);
}
if ($hastreeprocessor) {
$fn = $this->csstreepostprocessor;
$fn($csstree, $this);
}
if ($hastreeprocessor) {
$fn = $this->csstreepostprocessor;
$fn($csstree, $this);
$css = $csstree->render();
unset($csstree);
}