Permalink
Browse files

MDL-44468 backup: use html_writer::div call

Simplify the renderer code with the new html_writer
div function.
  • Loading branch information...
David Scotson authored and danpoltawski committed Mar 6, 2014
1 parent 1028164 commit a9d31ba04878b4648ebc494abc90acb04fde820f
Showing with 2 additions and 2 deletions.
  1. +2 −2 backup/util/ui/renderer.php
@@ -203,11 +203,11 @@ public function backup_details_nonstandard($nextstageurl, array $details) {
*/
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;
}

0 comments on commit a9d31ba

Please sign in to comment.