Skip to content

Commit

Permalink
[FIX] Deprecated.
Browse files Browse the repository at this point in the history
  • Loading branch information
Seiger committed Sep 6, 2024
1 parent 016f4bc commit cddaac7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/sGallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,9 @@ public function initialise(string $viewType = '', string $resourceType = 'resour
* @param int|null $documentId Document ID (optional).
* @param string|null $lang Language code (optional).
* @return object Collection of gallery items.
* @deprecated Use sGallery::collections()->all()->get() instead.
*/
public function all(string $resourceType = 'resource', int $documentId = null, string $lang = null): object
{
trigger_error('Method all() is deprecated. Use the sGallery::collections()->all()->get() instead.', E_USER_DEPRECATED);

if (!$documentId) {
$documentId = evo()->documentObject['id'] ?? 0;
}
Expand Down

0 comments on commit cddaac7

Please sign in to comment.