Skip to content

Commit

Permalink
Fixes #152 - change mydate to date
Browse files Browse the repository at this point in the history
It should fix an issue with time/date function which was changed in MyBB v1.8.11. Thx @SvePu
  • Loading branch information
Eldenroot authored Jul 5, 2017
1 parent 89a9c13 commit 1135ff9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/plugins/thankyoulike.php
Original file line number Diff line number Diff line change
Expand Up @@ -959,8 +959,8 @@ function thankyoulike_postbit(&$post)
$profilelink = $username;
// Format username... or not
$tyl_list = $mybb->settings[$prefix.'unameformat'] == "1" ? format_name($tyl['username'], $tyl['usergroup'], $tyl['displaygroup']) : $tyl['username'];
$datedisplay_next = $mybb->settings[$prefix.'showdt'] == "nexttoname" ? "<span class='smalltext'> (".my_date($mybb->settings[$prefix.'dtformat'], $tyl['dateline']).")</span>" : "";
$datedisplay_title = $mybb->settings[$prefix.'showdt'] == "astitle" ? "title='".my_date($mybb->settings[$prefix.'dtformat'], $tyl['dateline'])."'" : "";
$datedisplay_next = $mybb->settings[$prefix.'showdt'] == "nexttoname" ? "<span class='smalltext'> (".date($mybb->settings[$prefix.'dtformat'], $tyl['dateline']).")</span>" : "";
$datedisplay_title = $mybb->settings[$prefix.'showdt'] == "astitle" ? "title='".date($mybb->settings[$prefix.'dtformat'], $tyl['dateline'])."'" : "";
eval("\$thankyoulike_users = \"".$templates->get("thankyoulike_users", 1, 0)."\";");
$tyls .= trim($thankyoulike_users);
$comma = ', ';
Expand Down

0 comments on commit 1135ff9

Please sign in to comment.