FIX Disabled pages must not appears into sitemap
This commit is contained in:
parent
9941236d76
commit
ae773ff938
@ -2353,7 +2353,8 @@ if ($action == 'generatesitemaps' && $usercanedit) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add "has translation pages"
|
// Add "has translation pages"
|
||||||
$sql = 'SELECT rowid as id, lang, pageurl from '.MAIN_DB_PREFIX.'website_page where fk_page IN ('.$db->sanitize($objp->rowid.($translationof ? ', '.$translationof : '')).")";
|
$sql = 'SELECT rowid as id, lang, pageurl from '.MAIN_DB_PREFIX.'website_page';
|
||||||
|
$sql .= ' WHERE status = '.WebsitePage::STATUS_VALIDATED.' AND fk_page IN ('.$db->sanitize($objp->rowid.($translationof ? ', '.$translationof : '')).")";
|
||||||
$resqlhastrans = $db->query($sql);
|
$resqlhastrans = $db->query($sql);
|
||||||
if ($resqlhastrans) {
|
if ($resqlhastrans) {
|
||||||
$num_rows_hastrans = $db->num_rows($resqlhastrans);
|
$num_rows_hastrans = $db->num_rows($resqlhastrans);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user