MDL-39871 themes RTL: Get rtlblockmanipulations from any parent
This commit is contained in:
+7
-2
@@ -488,8 +488,13 @@ class theme_config {
|
||||
}
|
||||
|
||||
// Use parent theme's "blockrtlmanipulations" if it was defined and if it was not defined on current theme.
|
||||
if (empty($this->blockrtlmanipulations) and !empty($parent_config->blockrtlmanipulations)) {
|
||||
$this->blockrtlmanipulations = $parent_config->blockrtlmanipulations;
|
||||
if (empty($this->blockrtlmanipulations)) {
|
||||
foreach ($this->parent_configs as $parent_config) {
|
||||
if (!empty($parent_config->blockrtlmanipulations)) {
|
||||
$this->blockrtlmanipulations = $parent_config->blockrtlmanipulations;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//fix arrows if needed
|
||||
|
||||
Reference in New Issue
Block a user