Skip to content

Commit

Permalink
MDL-19821 upgraded calls to print_table, print_single_button, print_u…
Browse files Browse the repository at this point in the history
…ser_picture, print_container* and notice_yesno
  • Loading branch information
nicolasconnault committed Aug 20, 2009
1 parent a941387 commit 55400db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions repository/lib.php
Expand Up @@ -1006,7 +1006,7 @@ public static function display_instances_list($context, $typename = null) {
$instancesnumber = count($instances);
$alreadyplugins = array();

$table = new StdClass;
$table = new html_table();
$table->head = array($namestr, $pluginstr, $deletestr, $settingsstr);
$table->align = array('left', 'left', 'center','center');
$table->data = array();
Expand Down Expand Up @@ -1035,7 +1035,7 @@ public static function display_instances_list($context, $typename = null) {
$alreadyplugins[] = $i->name;
}
}
$output .= print_table($table, true);
$output .= $OUTPUT->table($table);
$instancehtml = '<div>';
$addable = 0;

Expand Down
4 changes: 3 additions & 1 deletion repository/manage_instances.php
Expand Up @@ -179,7 +179,9 @@
}
exit;
}
notice_yesno(get_string('confirmdelete', 'repository', $instance->name), $baseurl . '&amp;delete=' . $delete . '&amp;sure=yes', $baseurl);
$formcontinue = html_form::make_button($baseurl, array('delete' => $delete, 'sure' => 'yes'), get_string('yes'));
$formcancel = html_form::make_button($baseurl, array(), get_string('no'));
echo $OUTPUT->confirm(get_string('confirmdelete', 'repository', $instance->name), $formcontinue, $formcancel);
$return = false;
} else {
repository::display_instances_list($context);
Expand Down

0 comments on commit 55400db

Please sign in to comment.