MDL-44468 backup: use html_writer::div call
authorDavid Scotson <david.scotson@glasgow.ac.uk>
Thu, 6 Mar 2014 12:11:42 +0000 (12:11 +0000)
committerDavid Scotson <david.scotson@glasgow.ac.uk>
Tue, 8 Apr 2014 08:46:42 +0000 (09:46 +0100)
Simplify the renderer code with the new html_writer
div function.

backup/util/ui/renderer.php

index 5194f62..a297c48 100644 (file)
@@ -221,11 +221,11 @@ class core_backup_renderer extends plugin_renderer_base {
      */
     public function backup_details_unknown(moodle_url $nextstageurl) {
 
-        $html  = html_writer::start_tag('div', array('class' => 'unknownformat'));
+        $html  = html_writer::start_div('unknownformat');
         $html .= $this->output->heading(get_string('errorinvalidformat', 'backup'), 2);
         $html .= $this->output->notification(get_string('errorinvalidformatinfo', 'backup'), 'notifyproblem');
         $html .= $this->output->single_button($nextstageurl, get_string('continue'), 'post');
-        $html .= html_writer::end_tag('div');
+        $html .= html_writer::end_div();
 
         return $html;
     }