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

improved writability check for sitemap FS#1093

darcs-hash:20070303192836-7ad00-fe821c42ba7541f58ab52b9d8d11b3241bc90b65.gz
parent a7dface4
No related branches found
No related tags found
No related merge requests found
......@@ -246,7 +246,12 @@ function runSitemapper(){
}
print "runSitemapper(): using $sitemap".NL;
if(!is_writable(DOKU_INC.$sitemap)) return false;
if(@file_exists(DOKU_INC.$sitemap)){
if(!is_writable(DOKU_INC.$sitemap)) return false;
}else{
if(!is_writable(DOKU_INC)) return false;
}
if(@filesize(DOKU_INC.$sitemap) &&
@filemtime(DOKU_INC.$sitemap) > (time()-($conf['sitemap']*60*60*24))){
print 'runSitemapper(): Sitemap up to date'.NL;
......
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