Using the time class properly.

This commit is contained in:
stronk7
2005-06-19 16:45:11 +00:00
parent 4031b89e9b
commit cf2b886d4d
3 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ function glossary_show_entry_faq($course, $cm, $glossary, $entry, $mode="", $hoo
glossary_print_entry_concept($entry);
echo '</span><br />';
echo '<span class="author">('.get_string('lastedited').': '.
echo '<span class="time">('.get_string('lastedited').': '.
userdate($entry->timemodified).')</span>';
echo '</td>';
echo '<td class="entryattachment">';
@@ -15,8 +15,8 @@ function glossary_show_entry_fullwithoutauthor($course, $cm, $glossary, $entry,
glossary_print_entry_concept($entry);
echo '</span><br />';
echo '('.get_string('lastedited').': '.
userdate($entry->timemodified).')';
echo '<span class="time">('.get_string('lastedited').': '.
userdate($entry->timemodified).')</span>';
echo '</td>';
echo '<td class="entryattachment">';
+6 -2
View File
@@ -1516,8 +1516,12 @@ function glossary_print_comment($course, $cm, $glossary, $entry, $comment) {
print_user_picture($user->id, $course->id, $user->picture);
echo '</td>';
echo '<td class="entryheader">';
echo "<span class=\"author\"><a href=\"$CFG->wwwroot/user/view.php?id=$user->id&amp;course=$course->id\">$fullname</a></span><br />";
echo '<span class="time">'.get_string('lastedited').': '.userdate($comment->timemodified).'</span>';
$fullname = fullname($user, isteacher($course->id));
$by->name = '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$user->id.'&amp;course='.$course->id.'">'.$fullname.'</a>';
$by->date = userdate($comment->timemodified);
echo '<span class="author">'.get_string('bynameondate', 'forum', $by).'</span>';
echo '</td></tr>';
echo '<tr valign="top"><td class="left side">';