From 5c2b2dd83a7bffb31b69f82a312680d8c0aae080 Mon Sep 17 00:00:00 2001 From: rkingdon Date: Sun, 21 Nov 2004 15:30:14 +0000 Subject: [PATCH] User Pictures to dialogue headers. --- mod/dialogue/dialogues.php | 6 +++--- mod/dialogue/locallib.php | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/mod/dialogue/dialogues.php b/mod/dialogue/dialogues.php index 9bba7443bf..65576be057 100644 --- a/mod/dialogue/dialogues.php +++ b/mod/dialogue/dialogues.php @@ -268,9 +268,9 @@ /****************** print dialogue (allowing new entry)********************/ elseif ($action == 'printdialogue') { - if (!$conversation = get_record("dialogue_conversations", "id", $_GET['cid'])) { - error("Print Dialogue: can not get conversation record"); - } + // if (!$conversation = get_record("dialogue_conversations", "id", $_GET['cid'])) { + // error("Print Dialogue: can not get conversation record"); + // } print_simple_box( text_to_html($dialogue->intro) , "center"); echo "
"; diff --git a/mod/dialogue/locallib.php b/mod/dialogue/locallib.php index 599421e217..d48f43a011 100644 --- a/mod/dialogue/locallib.php +++ b/mod/dialogue/locallib.php @@ -455,8 +455,8 @@ function dialogue_list_conversations_self($dialogue) { error("User not found"); } } - // print_user_picture($user->id, $course->id, $user->picture); - echo "".get_string("dialoguewith", "dialogue", fullname($otheruser)). + $picture = print_user_picture($otheruser->id, $course->id, $otheruser->picture, false, true); + echo $picture." ".get_string("dialoguewith", "dialogue", fullname($otheruser)). ""; echo "cellheading2\">".clean_text($conversation->subject)." 
\n"; echo "
\n"; @@ -560,8 +560,8 @@ function dialogue_print_conversation($dialogue, $conversation) { error("User not found"); } } - // print_user_picture($user->id, $course->id, $user->picture); - echo "".get_string("dialoguewith", "dialogue", fullname($otheruser)). + $picture = print_user_picture($otheruser->id, $course->id, $otheruser->picture, false, true); + echo $picture." ".get_string("dialoguewith", "dialogue", fullname($otheruser)). ""; echo "cellheading2\">".clean_text($conversation->subject)." 
\n"; echo "
\n"; @@ -728,8 +728,8 @@ function dialogue_show_conversation($dialogue, $conversation) { error("User not found"); } } - // print_user_picture($user->id, $course->id, $user->picture); - echo "".get_string("dialoguewith", "dialogue", fullname($otheruser)). + $picture = print_user_picture($otheruser->id, $course->id, $otheruser->picture, false, true); + echo $picture." ".get_string("dialoguewith", "dialogue", fullname($otheruser)). ""; echo "cellheading2\" valign=\"top\">".clean_text($conversation->subject)." "; -- 2.39.5