Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make dates on 'Subscriber details' page human readable (#315)
* Make dates on 'Subscriber details' page human readable

Signed-off-by: Xheni Myrtaj <myrtajxheni@gmail.com>

* make 'last time password was changed' human readable

Signed-off-by: Xheni Myrtaj <myrtajxheni@gmail.com>

* add braces and spaces

Signed-off-by: Xheni Myrtaj <myrtajxheni@gmail.com>
  • Loading branch information
xh3n1 authored and michield committed May 24, 2018
1 parent 5d4519b commit 2ba5d93
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions public_html/lists/admin/user.php
Expand Up @@ -425,8 +425,13 @@ class="confirm btn btn-default"
} else {
if (!strpos($key, '_')) {
if (strpos($a, 'sys') !== false) {
$userdetailsHTML .= sprintf('<tr><td class="dataname">%s</td><td>%s</td></tr>',
s($b), stripslashes($user[$key]));
if ($key === 'modified' || $key === 'entered' || $key === 'passwordchanged') {
$userdetailsHTML .= sprintf('<tr><td class="dataname">%s</td><td>%s</td></tr>',
s($b), stripslashes(formatDateTime($user[$key])));
} else {
$userdetailsHTML .= sprintf('<tr><td class="dataname">%s</td><td>%s</td></tr>',
s($b), stripslashes($user[$key]));
}
} elseif ($val[1]) {
$userdetailsHTML .= sprintf('<tr><td class="dataname">%s</td><td><input type="text" name="%s" value="%s" size="30" /></td></tr>'."\n",
s($val[1]), $key, htmlspecialchars(stripslashes($user[$key])));
Expand Down

0 comments on commit 2ba5d93

Please sign in to comment.