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
David Scotson committed Mar 6, 2014
1 parent 9b2a2ff commit a1071322f715903a3732d806f6a80c3d4da0610a
Showing with 2 additions and 2 deletions.
  1. +2 −2 backup/util/ui/renderer.php
@@ -221,11 +221,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 a107132

Please sign in to comment.