diff --git a/core/modules/file/file.module b/core/modules/file/file.module index 7256399db5209e300bacfd7faca3dacc2bb9acb1..9b57737f0047fa8374acdaf7ac3aac0642246e83 100644 --- a/core/modules/file/file.module +++ b/core/modules/file/file.module @@ -1951,9 +1951,7 @@ function file_permission() { $perms = array( 'access files overview' => array( 'title' => t('Access the Files overview page'), - 'description' => user_access('access files overview') - ? t('Get an overview of <a href="@url">all files</a>.', array('@url' => url('admin/content/files'))) - : t('Get an overview of all files.'), + 'description' => t('Get an overview of <a href="!url">all files</a>.', array('!url' => url('admin/content/files'))), ), ); diff --git a/core/modules/node/node.module b/core/modules/node/node.module index fc8b7139f150e6425c3d949b310788ceff3c8129..b9a23251a486e1b48ba240ee3a4d3a7f1f117f65 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -709,9 +709,7 @@ function node_permission() { ), 'access content overview' => array( 'title' => t('Access the Content overview page'), - 'description' => user_access('access content overview') - ? t('Get an overview of <a href="@url">all content</a>.', array('@url' => url('admin/content'))) - : t('Get an overview of all content.'), + 'description' => t('Get an overview of <a href="!url">all content</a>.', array('!url' => \Drupal::url('system.admin_content'))), ), 'access content' => array( 'title' => t('View published content'),