Skip to content

Commit

Permalink
Merge pull request #76 from creative-commoners/pulls/2/stop-using-depr
Browse files Browse the repository at this point in the history
API Stop using deprecated API
  • Loading branch information
sabina-talipova authored Dec 5, 2022
2 parents 8041c15 + 6699b90 commit 48220da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VersionFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function getDiffList($highestVersion = null, $limit = 100)
$offset = $highestVersion ? "AND \"SiteTree_Versions\".\"Version\"<='".(int)$highestVersion."'" : '';
// Get just enough elements for diffing. We need one more than desired to have something to compare to.
$qLimit = (int)$limit + 1;
$versions = $this->owner->allVersions(
$versions = $this->owner->Versions(
"\"WasPublished\"='1' AND \"CanViewType\" IN ('Anyone', 'Inherit') $offset",
"\"SiteTree\".\"LastEdited\" DESC, \"SiteTree\".\"ID\" DESC",
$qLimit
Expand Down

0 comments on commit 48220da

Please sign in to comment.