Skip to content

Commit b61a220

Browse files
committed
Sitemap has access to all variables now
1 parent cfae876 commit b61a220

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,10 @@ function replaceVariables($str){
412412

413413

414414
// process sitemap.xml
415-
if(FULL_REQUEST === 'sitemap.xml') include('sitemap.php');
415+
if(FULL_REQUEST === 'sitemap.xml'){
416+
respondWithFile('sitemap.php'); // in root
417+
return;
418+
}
416419

417420

418421
// all other files including PHP files

0 commit comments

Comments
 (0)