diff --git a/composer.json b/composer.json index 1b593f1..a39bbc6 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "bnomei/kirby3-feed", "type": "kirby-plugin", - "version": "1.6.0", + "version": "1.6.1", "description": "Generate a RSS/JSON/Sitemap-Feed from a Pages-Collection", "license": "MIT", "authors": [ diff --git a/index.php b/index.php index 74af520..8ca8f99 100644 --- a/index.php +++ b/index.php @@ -7,10 +7,10 @@ 'cache' => true, 'debugforce' => true, 'sitemap' => [ - 'enabled' => true, + 'enable' => true, ], 'feed' => [ - 'enabled' => true, + 'enable' => true, ], 'expires' => (60*24*7), // minutes ], @@ -22,7 +22,7 @@ ], 'pagesMethods' => [ // PAGES not PAGE 'feed' => function ($options = [], $force = null) { - if (option('bnomei.feed.feed.enabled') !== true) { + if (option('bnomei.feed.feed.enable') !== true) { return; } $response = \Bnomei\Feed::feed($this, $options, $force); @@ -30,7 +30,7 @@ return $response; }, 'sitemap' => function ($options = [], $force = null) { - if (option('bnomei.feed.sitemap.enabled') !== true) { + if (option('bnomei.feed.sitemap.enable') !== true) { return; } if (!A::get($options, 'snippet')) { diff --git a/vendor/Expectation.php b/vendor/Expectation.php deleted file mode 100644 index d5c2b4e..0000000 --- a/vendor/Expectation.php +++ /dev/null @@ -1,8 +0,0 @@ -