Fix order
This commit is contained in:
parent
fd3f2f4e27
commit
8067e1d70a
@ -2266,7 +2266,7 @@ if ($action == 'generatesitemaps' && $usercanedit) {
|
|||||||
$sql .= " AND wp.status = ".WebsitePage::STATUS_VALIDATED;
|
$sql .= " AND wp.status = ".WebsitePage::STATUS_VALIDATED;
|
||||||
$sql .= " AND wp.pageurl NOT IN ('404', '500', '501', '503')";
|
$sql .= " AND wp.pageurl NOT IN ('404', '500', '501', '503')";
|
||||||
$sql .= " AND w.ref = '".dol_escape_json($websitekey)."'";
|
$sql .= " AND w.ref = '".dol_escape_json($websitekey)."'";
|
||||||
$sql .= " ORDER BY wp.fk_default_home DESC, wp.rowid DESC";
|
$sql .= " ORDER BY wp.tms DESC, wp.rowid DESC";
|
||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
if ($resql) {
|
if ($resql) {
|
||||||
$num_rows = $db->num_rows($resql);
|
$num_rows = $db->num_rows($resql);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user