Using the time class properly.
This commit is contained in:
@@ -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">';
|
||||
|
||||
|
||||
@@ -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&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.'&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">';
|
||||
|
||||
Reference in New Issue
Block a user