The following warnings occurred:
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message



GetSimple Support Forum
save-sitemap hook - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Developer Discussions (http://get-simple.info/forums/forumdisplay.php?fid=8)
+--- Thread: save-sitemap hook (/showthread.php?tid=1812)



save-sitemap hook - roog - 2011-06-04

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);
}