Skip to content
Snippets Groups Projects
Commit 0280d25b authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fixed google sitemap pinging #815

darcs-hash:20060529183003-7ad00-de0e3acac75a9f94f6c27f67651eeabe40411d7a.gz
parent 8716966d
No related branches found
No related tags found
No related merge requests found
......@@ -138,15 +138,15 @@ function runSitemapper(){
if(!$conf['sitemap']) return false;
if($conf['usegzip']){
$sitemap = DOKU_INC.'sitemap.xml.gz';
$sitemap = 'sitemap.xml.gz';
}else{
$sitemap = DOKU_INC.'sitemap.xml';
$sitemap = 'sitemap.xml';
}
print "runSitemapper(): using $sitemap".NL;
if(!is_writable($sitemap)) return false;
if(@filesize($sitemap) &&
@filemtime($sitemap) > (time()-($conf['sitemap']*60*60*24))){
if(!is_writable(DOKU_INC.$sitemap)) return false;
if(@filesize(DOKU_INC.$sitemap) &&
@filemtime(DOKU_INC.$sitemap) > (time()-($conf['sitemap']*60*60*24))){
print 'runSitemapper(): Sitemap up to date'.NL;
return false;
}
......@@ -178,7 +178,7 @@ function runSitemapper(){
ob_end_clean();
//save the new sitemap
io_saveFile($sitemap,$data);
io_saveFile(DOKU_INC.$sitemap,$data);
print 'runSitemapper(): pinging google'.NL;
//ping google
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment