* This is used when displaying blocks for regions only.
* @var array
*/
- public $blockrtlmanipulations = null;
+ public $blockrtlmanipulations = array();
/**
* @var renderer_factory Instance of the renderer_factory implementation
}
// Use parent theme's "blockrtlmanipulations" if it was defined and if it was not defined on current theme.
- if (!is_array($this->blockrtlmanipulations)) {
- $blockrtlmanipulations = array();
- foreach ($this->parent_configs as $parentconfig) {
- if (isset($parentconfig->blockrtlmanipulations)) {
- $blockrtlmanipulations = $parentconfig->blockrtlmanipulations;
- break;
- }
- }
- $this->blockrtlmanipulations = $blockrtlmanipulations;
+ if (empty($this->blockrtlmanipulations) and !empty($parent_config->blockrtlmanipulations)) {
+ $this->blockrtlmanipulations = $parent_config->blockrtlmanipulations;
}
//fix arrows if needed