Skip to content

Commit e6e7c5e

Browse files
authored
Merge pull request #493 from topcoder-platform/issues-480
Issues-480: disabled clickable dates
2 parents 866a3be + 8ac9932 commit e6e7c5e

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

vanilla/applications/vanilla/views/categories/helper_functions.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,7 @@ function mostRecentString($row) {
125125
$r .= t('on').' ';
126126
$dateFormatted = Gdn::getContainer()->get(DateTimeFormatter::class)->formatDate($lastDate, false, '%a, %b %e %Y');
127127
$timeFormatted = Gdn::getContainer()->get(DateTimeFormatter::class)->formatDate($lastDate, false, '%I:%M %p');
128-
$r .= anchor(
129-
$dateFormatted.' at '.$timeFormatted,
130-
$row['LastUrl'],
131-
'CommentDate');
128+
$r .= $dateFormatted.' at '.$timeFormatted;
132129
$r .= '</span>';
133130
}
134131

vanilla/applications/vanilla/views/discussion/discussion.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@
5151
</div>
5252
<div class="Meta DiscussionMeta">
5353
<span class="MItem DateCreated">
54-
<?php
55-
echo anchor(Gdn_Format::date($Discussion->DateInserted, 'html'), $Discussion->Url, 'Permalink', ['rel' => 'nofollow']);
56-
?>
54+
<?php echo Gdn_Format::date($Discussion->DateInserted, 'html'); ?>
5755
</span>
5856
<?php
5957
echo dateUpdated($Discussion, ['<span class="MItem">', '</span>']);

vanilla/applications/vanilla/views/discussion/helper_functions.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ function writeComment($comment, $sender, $session, $currentOffset) {
145145
</div>
146146
<div class="Meta CommentMeta CommentInfo">
147147
<span class="MItem DateCreated">
148-
<?php echo anchor(Gdn::getContainer()->get(DateTimeFormatter::class)->formatDate($comment->DateInserted, true, DateTimeFormatter::FORCE_FULL_FORMAT), $permalink, 'Permalink', ['name' => 'Item_'.($currentOffset), 'rel' => 'nofollow']); ?>
148+
<?php echo Gdn::getContainer()->get(DateTimeFormatter::class)->formatDate($comment->DateInserted, true,
149+
DateTimeFormatter::FORCE_FULL_FORMAT); ?>
149150
</span>
150151
<?php
151152
echo dateUpdated($comment, ['<span class="MItem">', '</span>']);

0 commit comments

Comments
 (0)