Skip to content
Snippets Groups Projects
Commit 609cdb83 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #1245446 by rocket_nova: the 'recent content' section show useless...

- Patch #1245446 by rocket_nova: the 'recent content' section show useless empty squares for anonymous users.
parent 12bd5c7f
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
...@@ -2231,14 +2231,18 @@ function theme_node_recent_block($variables) { ...@@ -2231,14 +2231,18 @@ function theme_node_recent_block($variables) {
'data' => theme('node_recent_content', array('node' => $node)), 'data' => theme('node_recent_content', array('node' => $node)),
'class' => 'title-author', 'class' => 'title-author',
); );
$row[] = array( if (node_access('update', $node)) {
'data' => node_access('update', $node) ? l(t('edit'), 'node/' . $node->nid . '/edit', $l_options) : '', $row[] = array(
'class' => 'edit', 'data' => l(t('edit'), 'node/' . $node->nid . '/edit', $l_options),
); 'class' => 'edit',
$row[] = array( );
'data' => node_access('delete', $node) ? l(t('delete'), 'node/' . $node->nid . '/delete', $l_options) : '', }
'class' => 'delete', if (node_access('delete', $node)) {
); $row[] = array(
'data' => l(t('delete'), 'node/' . $node->nid . '/delete', $l_options),
'class' => 'delete',
);
}
$rows[] = $row; $rows[] = $row;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment