Commit 04bee878 authored by Dave Reid's avatar Dave Reid

#786010 by JoshuaRogers, Dave Reid: Fixed permission names and...

#786010 by JoshuaRogers, Dave Reid: Fixed permission names and admin/config/people changed to admin/people.
parent 50896c54
......@@ -29,7 +29,7 @@ function xmlsitemap_requirements($phase) {
$requirements['xmlsitemap_access'] = array(
'title' => $t('XML sitemap anonymous content access'),
'value' => $t('Access denied'),
'description' => $t('In order to allow search engines to view the XML sitemap and content on your site, the anonymous user role must have the <a href="@perm-link">%permission</a> permission.', array('@perm-link' => url('admin/config/people/permissions/' . DRUPAL_ANONYMOUS_RID, array('fragment' => 'module-node')), '%permission' => 'access content')),
'description' => $t('In order to allow search engines to view the XML sitemap and content on your site, the anonymous user role must have the <a href="@perm-link"><em>View published content</em></a> permission.', array('@perm-link' => url('admin/people/permissions/' . DRUPAL_ANONYMOUS_RID, array('fragment' => 'module-node')))),
'severity' => REQUIREMENT_ERROR,
);
}
......
......@@ -37,7 +37,7 @@ class XMLSitemapCustomFunctionalTest extends XMLSitemapTestHelper {
$this->assertNoSitemapLink(array('type' => 'custom', 'loc' => $edit['loc']));
// Test a path not accessible to anonymous user.
$edit['loc'] = 'admin/config/people/accounts';
$edit['loc'] = 'admin/people/people';
$this->drupalPost(NULL, $edit, t('Save'));
$this->assertText(t('The custom link @link is either invalid or it cannot be accessed by anonymous users.', array('@link' => $edit['loc'])));
$this->assertNoSitemapLink(array('type' => 'custom', 'loc' => $edit['loc']));
......
......@@ -18,7 +18,7 @@ function xmlsitemap_user_requirements($phase) {
$requirements['xmlsitemap_user_anonymous_permission'] = array(
'title' => $t('XML sitemap user'),
'value' => $t('Anonymous access to user profiles'),
'description' => $t('In order to list user profile links in the sitemap, the anonymous user must have the <a href="@perm-link"><em>access user profiles</em> permission</a>.', array('@perm-link' => url('admin/config/people/permissions', array('fragment' => 'module-user')))),
'description' => $t('In order to list user profile links in the sitemap, the anonymous user must have the <a href="@perm-link"><em>View user profiles</em> permission</a>.', array('@perm-link' => url('admin/people/permissions/' . DRUPAL_ANONYMOUS_RID, array('fragment' => 'module-user')))),
'severity' => REQUIREMENT_ERROR,
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment