mirror of
https://github.com/wilr/silverstripe-googlesitemaps.git
synced 2024-10-22 09:05:48 +00:00
Merge pull request #80 from simonwelsh/patch-1
Null out the order by clause
This commit is contained in:
commit
092b2e10ae
@ -286,6 +286,7 @@ class GoogleSitemap {
|
|||||||
|
|
||||||
$lastEdited = $instances
|
$lastEdited = $instances
|
||||||
->limit($countPerFile, ($i - 1) * $countPerFile)
|
->limit($countPerFile, ($i - 1) * $countPerFile)
|
||||||
|
->sort(array())
|
||||||
->max('LastEdited');
|
->max('LastEdited');
|
||||||
|
|
||||||
$lastModified = ($lastEdited) ? date('Y-m-d', strtotime($lastEdited)) : date('Y-m-d');
|
$lastModified = ($lastEdited) ? date('Y-m-d', strtotime($lastEdited)) : date('Y-m-d');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user