Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
xmlsitemap
Commits
6740cea2
Commit
6740cea2
authored
Aug 30, 2010
by
Dave Reid
Browse files
by Dave Reid: Convert to using objects for XML sitemaps instead of arrays.
parent
f4d201bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
xmlsitemap.module
View file @
6740cea2
...
...
@@ -403,7 +403,8 @@ function xmlsitemap_sitemap_save(stdClass $sitemap) {
// If the context was changed, we need to perform additional actions.
if
(
isset
(
$smid_old
)
&&
$sitemap
->
smid
!=
$smid_old
)
{
// Rename the files directory so the sitemap does not break.
$old_dir
=
xmlsitemap_get_directory
(
array
(
'smid'
=>
$smid_old
));
$old_sitemap
=
(
object
)
array
(
'smid'
=>
$smid_old
);
$old_dir
=
xmlsitemap_get_directory
(
$old_sitemap
);
$new_dir
=
xmlsitemap_get_directory
(
$sitemap
);
xmlsitemap_directory_move
(
$old_dir
,
$new_dir
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment