Skip to content

Commit

Permalink
Merge branch 'release/1.6.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviocopes committed Apr 29, 2016
2 parents 671a735 + 5c5310d commit 4b7d56c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# v1.6.0
## 04/29/2016

1. [](#new)
* Added compatibility with Grav Admin 1.1
1. [](#improved)
* Use some common translated strings in the blueprint

# v1.5.0
## 01/06/2016

Expand Down
8 changes: 4 additions & 4 deletions blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Sitemap
version: 1.5.0
version: 1.6.0
description: "Provide automatically generated **XML sitemaps** with this very useful, but simple to configure, Grav plugin."
icon: map-marker
author:
Expand All @@ -16,12 +16,12 @@ form:
fields:
enabled:
type: toggle
label: Plugin status
label: PLUGIN_ADMIN.PLUGIN_STATUS
highlight: 1
default: 0
options:
1: Enabled
0: Disabled
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool

Expand Down
2 changes: 1 addition & 1 deletion sitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function onBlueprintCreated(Event $event)

/** @var Data\Blueprint $blueprint */
$blueprint = $event['blueprint'];
if (!$inEvent && $blueprint->get('form.fields.tabs')) {
if (!$inEvent && $blueprint->get('form/fields/tabs', null, '/')) {
$inEvent = true;
$blueprints = new Data\Blueprints(__DIR__ . '/blueprints/');
$extends = $blueprints->get('sitemap');
Expand Down

0 comments on commit 4b7d56c

Please sign in to comment.