Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
X
xmlsitemap
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
xmlsitemap
Commits
0c573a97
Commit
0c573a97
authored
Jun 06, 2014
by
andrei.dincu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2249723
by andrei.dincu: Replace stdClass with XmlSitemapInterface in xmsitemap.module
parent
80c1c0f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
xmlsitemap.module
xmlsitemap.module
+3
-3
No files found.
xmlsitemap.module
View file @
0c573a97
...
...
@@ -794,7 +794,7 @@ function xmlsitemap_get_directory(XmlSitemapInterface $sitemap = NULL) {
/**
* Check that the sitemap files directory exists and is writable.
*/
function
xmlsitemap_check_directory
(
stdClass
$sitemap
=
NULL
)
{
function
xmlsitemap_check_directory
(
XmlSitemapInterface
$sitemap
=
NULL
)
{
$directory
=
xmlsitemap_get_directory
(
$sitemap
);
$result
=
file_prepare_directory
(
$directory
,
FILE_CREATE_DIRECTORY
|
FILE_MODIFY_PERMISSIONS
);
if
(
!
$result
)
{
...
...
@@ -825,7 +825,7 @@ function xmlsitemap_check_all_directories() {
return
$directories
;
}
function
xmlsitemap_clear_directory
(
stdClass
$sitemap
=
NULL
,
$delete
=
FALSE
)
{
function
xmlsitemap_clear_directory
(
XmlSitemapInterface
$sitemap
=
NULL
,
$delete
=
FALSE
)
{
$directory
=
xmlsitemap_get_directory
(
$sitemap
);
return
_xmlsitemap_delete_recursive
(
$directory
,
$delete
);
}
...
...
@@ -1468,7 +1468,7 @@ function xmlsitemap_get_current_context() {
return
$context
;
}
function
_xmlsitemap_sitemap_context_summary
(
stdClass
$sitemap
,
$context_key
,
array
$context_info
)
{
function
_xmlsitemap_sitemap_context_summary
(
XmlSitemapInterface
$sitemap
,
$context_key
,
array
$context_info
)
{
$context_value
=
isset
(
$sitemap
->
context
[
$context_key
])
?
$sitemap
->
context
[
$context_key
]
:
NULL
;
if
(
!
isset
(
$context_value
))
{
...
...
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