Skip to content

Commit

Permalink
♻️ enabled => enable
Browse files Browse the repository at this point in the history
  • Loading branch information
bnomei committed May 28, 2024
1 parent 632bbe3 commit 2001c8e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
8 changes: 4 additions & 4 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
'cache' => true,
'debugforce' => true,
'sitemap' => [
'enabled' => true,
'enable' => true,
],
'feed' => [
'enabled' => true,
'enable' => true,
],
'expires' => (60*24*7), // minutes
],
Expand All @@ -22,15 +22,15 @@
],
'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);
kirby()->response()->type($response->type());
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')) {
Expand Down
8 changes: 0 additions & 8 deletions vendor/Expectation.php

This file was deleted.

0 comments on commit 2001c8e

Please sign in to comment.