MDL-31500 backup: New unit test for front page backup/restore

This commit is contained in:
David Monllao 2014-11-13 15:22:34 +08:00
parent ca0e301c7b
commit 818262afa5
2 changed files with 76 additions and 0 deletions

View file

@ -266,6 +266,7 @@ class core_backup_renderer extends plugin_renderer_base {
$html = html_writer::start_tag('div', array('class'=>'backup-course-selector backup-restore'));
if ($wholecourse && !empty($categories) && ($categories->get_count() > 0 || $categories->get_search())) {
// New course
$hasrestoreoption = true;
$html .= $form;