MDL-39824 output: fixed bug when moving blocks with rtl lang

This commit is contained in:
Sam Hemelryk
2013-06-10 09:29:58 +12:00
parent 8504444307
commit dac7c261ca
+3 -2
View File
@@ -3040,12 +3040,13 @@ EOD;
* @return string HTML.
*/
public function blocks($region, $classes = array(), $tag = 'aside') {
$displayregion = $this->page->apply_theme_region_manipulations($region);
$classes = (array)$classes;
$classes[] = 'block-region';
$attributes = array(
'id' => 'block-region-'.preg_replace('#[^a-zA-Z0-9_\-]+#', '-', $region),
'id' => 'block-region-'.preg_replace('#[^a-zA-Z0-9_\-]+#', '-', $displayregion),
'class' => join(' ', $classes),
'data-blockregion' => $region,
'data-blockregion' => $displayregion,
'data-droptarget' => '1'
);
return html_writer::tag($tag, $this->blocks_for_region($region), $attributes);