Skip to content

Commit

Permalink
MDL-30279 show full date and time for all wiki revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
mackensen authored and ankitagarwal committed Nov 17, 2011
1 parent 6be90ce commit 9f2dc66
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions mod/wiki/pagelib.php
Expand Up @@ -1260,20 +1260,13 @@ private function print_history_content() {
} else {

$checked = $vcount - $offset;
$lastdate = '';
$rowclass = array();

foreach ($versions as $version) {
$user = wiki_get_user_info($version->userid);
$picture = $OUTPUT->user_picture($user, array('popup' => true));
$date = userdate($version->timecreated, get_string('strftimedate'));
if ($date == $lastdate) {
$date = '';
$rowclass[] = '';
} else {
$lastdate = $date;
$rowclass[] = 'wiki_histnewdate';
}
$rowclass[] = 'wiki_histnewdate';
$time = userdate($version->timecreated, get_string('strftimetime', 'langconfig'));
$versionid = wiki_get_version($version->id);
if ($versionid) {
Expand Down

0 comments on commit 9f2dc66

Please sign in to comment.