diff --git a/lib/outputrequirementslib.php b/lib/outputrequirementslib.php index 003cda15adc..58c7a586679 100644 --- a/lib/outputrequirementslib.php +++ b/lib/outputrequirementslib.php @@ -911,7 +911,7 @@ class page_requirements_manager { // As of IE8 + YUI3.1.1 the reference stylesheet (firstthemesheet) gets // ignored whenever another resource is added until such time as a redraw // is forced, usually by moving the mouse over the affected element. - $code = html_writer::tag('script', '/** Required in order to fix style inclusion problems in IE with YUI **/', $attributes+array('id'=>'firstthemesheet')); + $code = html_writer::tag('script', '/** Required in order to fix style inclusion problems in IE with YUI **/', array('id'=>'firstthemesheet', 'type'=>'text/css')); $urls = $this->cssthemeurls + $this->cssurls; foreach ($urls as $url) { diff --git a/lib/tablelib.php b/lib/tablelib.php index 49673bd06b6..49c04726df8 100644 --- a/lib/tablelib.php +++ b/lib/tablelib.php @@ -1025,6 +1025,7 @@ class flexible_table { $this->print_nothing_to_display(); } else { echo ''; + echo html_writer::end_tag('div'); $this->wrap_html_finish(); // Paging bar if(in_array(TABLE_P_BOTTOM, $this->showdownloadbuttonsat)) { @@ -1180,6 +1181,7 @@ class flexible_table { $this->wrap_html_start(); // Start of main data table + echo html_writer::start_tag('div', array('class'=>'flexible-wrap')); echo '