MDL-39871 themes RTL: Get rtlblockmanipulations from any parent

This commit is contained in:
Damyon Wiese
2013-08-27 11:14:53 +08:00
parent 5b2ed8b5ff
commit 2e68b1254f
+7 -2
View File
@@ -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