MDL-19792 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno

This commit is contained in:
nicolasconnault
2009-08-20 08:39:52 +00:00
parent cda9c83d16
commit 7d00c7bc1a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ if ($action === 'delete'){
print_header("$SITE->shortname: $strblogs", $SITE->fullname);
blog_print_entry($existing);
echo '<br />';
notice_yesno(get_string('blogdeleteconfirm', 'blog'), 'edit.php', 'index.php', $optionsyes, $optionsno, 'post', 'get');
echo $OUTPUT->confirm(get_string('blogdeleteconfirm', 'blog'), new moodle_url('edit.php', $optionsyes),new moodle_url( 'index.php', $optionsno));
echo $OUTPUT->footer();
die;
}
+2 -2
View File
@@ -132,7 +132,7 @@
* display the entry in its abbreviated format (eg. index page)
*/
function blog_print_entry($blogEntry, $viewtype='full', $filtertype='', $filterselect='', $mode='loud') {
global $USER, $CFG, $COURSE, $DB;
global $USER, $CFG, $COURSE, $DB, $OUTPUT;
$template['body'] = format_text($blogEntry->summary, $blogEntry->format);
$template['title'] = '<a id="b'. s($blogEntry->id) .'" />';
@@ -166,7 +166,7 @@
echo '<table cellspacing="0" class="forumpost blogpost blog'.$template['publishstate'].'" width="100%">';
echo '<tr class="header"><td class="picture left">';
print_user_picture($user, SITEID, $user->picture);
echo $OUTPUT->user_picture(moodle_user_picture::make($user, SITEID));
echo '</td>';
echo '<td class="topic starter"><div class="subject">'.$template['title'].'</div><div class="author">';