Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
save-sitemap hook
#1
I think the save-sitemap hook is executed a bit too often because it is inside a loop. This is giving me troubles when including posts written by the News Manager plugin: they are all included as many times as there are pages. In file sitemap.php, lines 80-88:

Code:
}

    //create xml file
    $file = GSROOTPATH .'sitemap.xml';
    exec_action('save-sitemap');
    XMLsave($xml, $file);
  }
}

should be:

Code:
}
  }
  //create xml file
  $file = GSROOTPATH .'sitemap.xml';
  exec_action('save-sitemap');
  XMLsave($xml, $file);
}
Reply




Users browsing this thread: 1 Guest(s)