From 2e68b1254f4613c679bc7338a097d63f09b4089e Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Tue, 27 Aug 2013 11:11:11 +0800 Subject: [PATCH] MDL-39871 themes RTL: Get rtlblockmanipulations from any parent --- lib/outputlib.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/outputlib.php b/lib/outputlib.php index 59b8cd259e3..8bfc1b29cc7 100644 --- a/lib/outputlib.php +++ b/lib/outputlib.php @@ -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 -- 2.43.0