Skip to content

Commit

Permalink
feature:2807 better fix for svn:28995
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@29008 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
mistic100 committed Jul 8, 2014
1 parent 1efc0eb commit 9ff7ab0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion admin/comments.php
Expand Up @@ -201,7 +201,7 @@
'ID' => $row['id'],
'TN_SRC' => $thumb,
'AUTHOR' => trigger_change('render_comment_author', $author_name),
'DATE' => format_date($row['date']).' '.substr($row['date'],11,4),
'DATE' => format_date($row['date'], array('day_name','day','month','year','time')),
'CONTENT' => trigger_change('render_comment_content',$row['content']),
'IS_PENDING' => ('false' == $row['validated']),
)
Expand Down
2 changes: 1 addition & 1 deletion comments.php
Expand Up @@ -485,7 +485,7 @@
'ALT' => $name,
'AUTHOR' => trigger_change('render_comment_author', $comment['author']),
'WEBSITE_URL' => $comment['website_url'],
'DATE'=>format_date($comment['date']).' '.substr($comment['date'],11,4),
'DATE'=>format_date($comment['date'], array('day_name','day','month','year','time')),
'CONTENT'=>trigger_change('render_comment_content',$comment['content']),
);

Expand Down
2 changes: 1 addition & 1 deletion include/functions.inc.php
Expand Up @@ -609,7 +609,7 @@ function format_date($original, $show=null, $format=null)
return l10n('N/A');
}

if ($show === null)
if ($show === null || $show === true)
{
$show = array('day_name', 'day', 'month', 'year');
}
Expand Down
2 changes: 1 addition & 1 deletion include/picture_comment.inc.php
Expand Up @@ -182,7 +182,7 @@
array(
'ID' => $row['id'],
'AUTHOR' => trigger_change('render_comment_author', $row['author']),
'DATE' => format_date($row['date']).' '.substr($row['date'],11,4),
'DATE' => format_date($row['date'], array('day_name','day','month','year','time')),
'CONTENT' => trigger_change('render_comment_content',$row['content']),
'WEBSITE_URL' => $row['website_url'],
);
Expand Down

0 comments on commit 9ff7ab0

Please sign in to comment.