Skip to content

Commit

Permalink
API Stop using deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 24, 2022
1 parent c716712 commit 8d7964d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/PageTypes/BasePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,8 @@ public function getFooter()
return FooterHolder::get_one(FooterHolder::class);
}

/**
* @deprecated 2.2.0 Use RelatedPagesThrough() instead
*/
public function RelatedPages()
{
Deprecation::notice('2.2.0', 'Use RelatedPagesThrough() instead');
return $this->getManyManyComponents('RelatedPagesThrough');
}

Expand Down
2 changes: 1 addition & 1 deletion src/PageTypes/DatedUpdateHolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public static function AllUpdates(
} catch (DatabaseException $e) {
self::handleInvalidDateFormat($e);
// Ensure invalid SQL does not get run again
$items = $className::get()->limit(0);
$items = $className::get()->limit(null);
}

// Unpaginated DataList.
Expand Down

0 comments on commit 8d7964d

Please sign in to comment.