When visiting the xmlsitemap settings page, the directory prefix shown for the xmlsitemap_path setting is incorrect when the default file scheme is set to private rather than public.

Files: 
CommentFileSizeAuthor
#3 xmlsitemap_settings_form-field_prefix-1248084-3.patch1.13 KBpillarsdotnet
PASSED: [[SimpleTest]]: [MySQL] 527 pass(es).
[ View ]
#2 xmlsitemap_settings_form-field_prefix-1248084-1.patch1.16 KBpillarsdotnet
PASSED: [[SimpleTest]]: [MySQL] 527 pass(es).
[ View ]
#1 xmlsitemap_settings_form-field_prefix-1248084-1.patch0 bytespillarsdotnet
PASSED: [[SimpleTest]]: [MySQL] 527 pass(es).
[ View ]

Comments

StatusFileSize
new0 bytes
PASSED: [[SimpleTest]]: [MySQL] 527 pass(es).
[ View ]

The attached patch ensures that the proper directory prefix is shown, regardless of the default file scheme.

Status:Active» Needs review
StatusFileSize
new1.16 KB
PASSED: [[SimpleTest]]: [MySQL] 527 pass(es).
[ View ]

Really, this time.

StatusFileSize
new1.13 KB
PASSED: [[SimpleTest]]: [MySQL] 527 pass(es).
[ View ]

Should have used file_default_scheme().

Status:Needs review» Fixed

I actually decided to base this off using file_build_uri() without realpath involved as that's kind of what core does already.
http://drupalcode.org/project/xmlsitemap.git/commit/6f4b6f0

Automatically closed -- issue fixed for 2 weeks with no activity.