@@ -123,7 +123,8 @@ |
||
| 123 | 123 | $feed->set_cache_location($this->cache_dir); |
| 124 | 124 | $feed->set_cache_duration($cache * 3600); |
| 125 | 125 | |
| 126 | - if ($items_per_feed) { |
|
| 126 | + if ($items_per_feed) |
|
| 127 | + { |
|
| 127 | 128 | $feed->set_item_limit($items_per_feed); |
| 128 | 129 | } |
| 129 | 130 | |
@@ -13,12 +13,12 @@ |
||
| 13 | 13 | |
| 14 | 14 | class Feed extends SimplePie |
| 15 | 15 | { |
| 16 | - public function __construct() |
|
| 17 | - { |
|
| 18 | - parent::__construct(); |
|
| 16 | + public function __construct() |
|
| 17 | + { |
|
| 18 | + parent::__construct(); |
|
| 19 | 19 | |
| 20 | 20 | $this->set_item_class('blitze\sitemaker\services\feeds\Item'); |
| 21 | - } |
|
| 21 | + } |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * Magic method handler |