Null out the order by clause
This commit is contained in:
parent
6d530af1a2
commit
91a543ea63
|
@ -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');
|
||||||
|
@ -400,4 +401,4 @@ class GoogleSitemap {
|
||||||
public static function enabled() {
|
public static function enabled() {
|
||||||
return (Config::inst()->get('GoogleSitemap', 'enabled', Config::INHERITED));
|
return (Config::inst()->get('GoogleSitemap', 'enabled', Config::INHERITED));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue