MDL-19792 upgraded calls to print_table, print_single_button, print_user_picture, print_container* and notice_yesno
This commit is contained in:
+1
-1
@@ -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
@@ -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">';
|
||||
|
||||
Reference in New Issue
Block a user