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
2
Merge Requests
2
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
6e35a7dc
Commit
6e35a7dc
authored
Jan 24, 2010
by
Dave Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
by Dave Reid: Removed redundant 'callback' from xmlsitemap_drush_command().
parent
bf01b30d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
xmlsitemap.drush.inc
xmlsitemap.drush.inc
+0
-3
xmlsitemap.pages.inc
xmlsitemap.pages.inc
+1
-1
No files found.
xmlsitemap.drush.inc
View file @
6e35a7dc
...
...
@@ -14,17 +14,14 @@
function
xmlsitemap_drush_command
()
{
$items
[
'xmlsitemap-regenerate'
]
=
array
(
'description'
=>
'Regenerate the XML sitemap files.'
,
'callback'
=>
'drush_xmlsitemap_regenerate'
,
'drupal dependencies'
=>
array
(
'xmlsitemap'
),
);
$items
[
'xmlsitemap-rebuild'
]
=
array
(
'description'
=>
'Dump and re-process all possible XML sitemap data, and then regenerate the files.'
,
'callback'
=>
'drush_xmlsitemap_rebuild'
,
'drupal dependencies'
=>
array
(
'xmlsitemap'
),
);
$items
[
'xmlsitemap-index'
]
=
array
(
'description'
=>
'Process un-indexed XML sitemap links.'
,
'callback'
=>
'drush_xmlsitemap_index'
,
'drupal dependencies'
=>
array
(
'xmlsitemap'
),
'options'
=>
array
(
'--limit'
=>
'The limit of links of each type to process. Default value: '
.
variable_get
(
'xmlsitemap_batch_limit'
,
100
),
...
...
xmlsitemap.pages.inc
View file @
6e35a7dc
...
...
@@ -31,7 +31,7 @@ function xmlsitemap_output_chunk($chunk = 0) {
*/
function
xmlsitemap_output_file
(
$file
,
array
$headers
=
array
())
{
if
(
!
file_exists
(
$file
)
||
!
is_readable
(
$file
))
{
return
drupal_not_found
()
;
return
MENU_NOT_FOUND
;
}
$mtime
=
filemtime
(
$file
);
...
...
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