diff --git a/README.md b/README.md index 510b7fd..a4eb5c0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # [mediawesome](https://packagist.org/packages/nglasl/silverstripe-mediawesome) -_The current release is **4.0.3**_ +_The current release is **4.0.4**_ > This module allows creation of dynamic media holders/pages with CMS customisable types and attributes (blogs, events, news, publications), including versioning. diff --git a/src/controllers/MediaHolderController.php b/src/controllers/MediaHolderController.php index 776c2a9..d8efa96 100644 --- a/src/controllers/MediaHolderController.php +++ b/src/controllers/MediaHolderController.php @@ -66,7 +66,7 @@ public function getPaginatedChildren($limit = 5, $sort = 'Date', $order = 'DESC' $request = $this->getRequest(); if($limitVar = $request->getVar('limit')) { - $limit = $limitVar; + $limit = ($limitVar > 100) ? 100 : $limitVar; } if($sortVar = $request->getVar('sort')) { $sort = $sortVar;