Skip to content

Commit

Permalink
Avoid breaking old templates
Browse files Browse the repository at this point in the history
  • Loading branch information
purplespider authored Jul 11, 2023
1 parent 1f65c8e commit 87e6524
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/PhotoGalleryHolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,10 @@ public function PaginatedGalleries()
$list->setPageLength($this->getMyPageLength());
return $list;
}

// To avoid breaking earlier templates
function Galleries()
{
return $this->PaginatedGalleries();
}
}

0 comments on commit 87e6524

Please sign in to comment.