Skip to content

Commit

Permalink
feature 2807: fix bugs on comments format_date
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@28995 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
rvelices committed Jul 7, 2014
1 parent 5dac760 commit a7e57cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions admin/comments.php
Expand Up @@ -57,7 +57,7 @@
{
include_once( PHPWG_ROOT_PATH .'include/functions_comment.inc.php' );
check_input_parameter('comments', $_POST, true, PATTERN_ID);

if (isset($_POST['validate']))
{
validate_user_comment($_POST['comments']);
Expand Down Expand Up @@ -186,7 +186,7 @@
'path'=>$row['path'],
)
);
if (empty($row['author_id']))
if (empty($row['author_id']))
{
$author_name = $row['author'];
}
Expand All @@ -201,7 +201,7 @@
'ID' => $row['id'],
'TN_SRC' => $thumb,
'AUTHOR' => trigger_change('render_comment_author', $author_name),
'DATE' => format_date($row['date'], true),
'DATE' => format_date($row['date']).' '.substr($row['date'],11,4),
'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'], true),
'DATE'=>format_date($comment['date']).' '.substr($comment['date'],11,4),
'CONTENT'=>trigger_change('render_comment_content',$comment['content']),
);

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'], true),
'DATE' => format_date($row['date']).' '.substr($row['date'],11,4),
'CONTENT' => trigger_change('render_comment_content',$row['content']),
'WEBSITE_URL' => $row['website_url'],
);
Expand Down

0 comments on commit a7e57cf

Please sign in to comment.