Merge pull request #80 from simonwelsh/patch-1

Null out the order by clause
This commit is contained in:
Will Rossiter 2015-03-14 12:26:00 +13:00
commit 092b2e10ae
1 changed files with 2 additions and 1 deletions

View File

@ -286,6 +286,7 @@ class GoogleSitemap {
$lastEdited = $instances
->limit($countPerFile, ($i - 1) * $countPerFile)
->sort(array())
->max('LastEdited');
$lastModified = ($lastEdited) ? date('Y-m-d', strtotime($lastEdited)) : date('Y-m-d');
@ -400,4 +401,4 @@ class GoogleSitemap {
public static function enabled() {
return (Config::inst()->get('GoogleSitemap', 'enabled', Config::INHERITED));
}
}
}