Skip to content

Commit

Permalink
MDL-44468 backup: use notification API
Browse files Browse the repository at this point in the history
Replace a hardcoded div.notifyproblem with a API call that,
in Standard theme, outputs the same HTML.

Also removes the .notifyproblem class from the heading,
as that might cause problems for themers who expect it to be
used consistently with the API.
  • Loading branch information
David Scotson committed Apr 8, 2014
1 parent 8911797 commit 68de16b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backup/util/ui/renderer.php
Expand Up @@ -222,8 +222,8 @@ 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 .= $this->output->heading(get_string('errorinvalidformat', 'backup'), 2, 'notifyproblem');
$html .= html_writer::tag('div', get_string('errorinvalidformatinfo', 'backup'), array('class' => 'notifyproblem'));
$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');

Expand Down

0 comments on commit 68de16b

Please sign in to comment.