Skip to content
Snippets Groups Projects
Commit 0afce23c authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#191931 by webchick: user avatars were not displayed on nodes

parent 6049f237
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -652,7 +652,7 @@ function node_load($param = array(), $revision = NULL, $reset = NULL) {
// Retrieve a field list based on the site's schema.
$fields = drupal_schema_fields_sql('node', 'n');
$fields = array_merge($fields, drupal_schema_fields_sql('node_revisions', 'r'));
$fields = array_merge($fields, array('u.name', 'u.data'));
$fields = array_merge($fields, array('u.name', 'u.picture', 'u.data'));
$fields = implode(', ', $fields);
// rename timestamp field for clarity.
$fields = str_replace('r.timestamp', 'r.timestamp AS revision_timestamp', $fields);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment