Fix selection of files to report into sitemap
This commit is contained in:
parent
20fb70d493
commit
08deb3c0e9
@ -2263,6 +2263,7 @@ if ($action == 'generatesitemaps' && $usercanedit) {
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."website_page as wp, ".MAIN_DB_PREFIX."website as w";
|
||||
$sql .= " WHERE wp.type_container IN ('page', 'blogpost')";
|
||||
$sql .= " AND wp.fk_website = w.rowid";
|
||||
$sql .= " AND status = ".WebsitePage::STATUS_VALIDATED;
|
||||
$sql .= " AND wp.pageurl NOT IN ('404', '500', '501', '503')";
|
||||
$sql .= " AND w.ref = '".dol_escape_json($websitekey)."'";
|
||||
$resql = $db->query($sql);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user