From c108068f6e535919344edc8fea00fd3a3043da62 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Thu, 20 Aug 2009 08:48:55 +0000 Subject: [PATCH] MDL-19819 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno --- portfolio/already.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/portfolio/already.php b/portfolio/already.php index cf791add48..fc1ac70da0 100644 --- a/portfolio/already.php +++ b/portfolio/already.php @@ -46,7 +46,7 @@ if (!$dataid = optional_param('id', '', PARAM_INT) ) { // all we're going to do is print a table with some information // about the current export, with a yes/ no option to resume or cancel. -$table = new StdClass; +$table = new html_table(); $table->head = array( get_string('displayarea', 'portfolio'), // the part of moodle exporting content get_string('destination', 'portfolio'), // the portfolio plugin instance @@ -69,10 +69,10 @@ if ($dataid) { $strheading = get_string('activeexport', 'portfolio'); print_header($strheading, $strheading); -notice_yesno(get_string('alreadyexporting', 'portfolio'), $CFG->wwwroot . '/portfolio/add.php', $CFG->wwwroot . '/portfolio/add.php?cancel=1'); +echo $OUTPUT->confirm(get_string('alreadyexporting', 'portfolio'), $CFG->wwwroot . '/portfolio/add.php', $CFG->wwwroot . '/portfolio/add.php?cancel=1'); if (count($table->data) > 0) { - print_table($table); + echo $OUTPUT->table($table); } echo $OUTPUT->footer(); -- 2.39.5