Skip to content

Commit

Permalink
MDL-44468 backup: use html_writer::div call
Browse files Browse the repository at this point in the history
Simplify the renderer code with the new html_writer
div function.
  • Loading branch information
David Scotson authored and danpoltawski committed Apr 18, 2014
1 parent 1028164 commit a9d31ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backup/util/ui/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a9d31ba

Please sign in to comment.