Skip to content

Commit

Permalink
MDL-19792 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 cda9c83 commit 7d00c7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion blog/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
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;
}
Expand Down
4 changes: 2 additions & 2 deletions blog/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function blog_print_html_formatted_entries($postid, $filtertype, $filterselect,
* 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) .'" />';
Expand Down Expand Up @@ -166,7 +166,7 @@ function blog_print_entry($blogEntry, $viewtype='full', $filtertype='', $filters
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">';
Expand Down

0 comments on commit 7d00c7b

Please sign in to comment.