Skip to content

Commit

Permalink
Merge branch 'release/1.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sommerregen committed Oct 16, 2015
2 parents e1a613e + 7bd1e13 commit 572172c
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 25 deletions.
17 changes: 0 additions & 17 deletions .gitattributes

This file was deleted.

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
assets/logo.svg
*.xcf
.idea
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v1.0.3
## 10/16/2015

2. [](#improved)
* Disable `TraceableTwigEnvironment` for **Grav v0.9.43+** by default and added backwards-compatibility check [#2](https://github.com/Sommerregen/grav-plugin-themer/issues/2) (TraceableTwigEnvironment not found)

# v1.0.2
## 09/08/2015

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* [Installation and Updates](#installation-and-updates)
* [Usage](#usage)
* [Contributing](#contributing)
* [Licencse](#license)
* [License](#license)

## About

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Themer
version: 1.0.2
version: 1.0.3
description: "This plugin enables you to use different themes on one site individual set per page or collection."
icon: magic
author:
Expand Down
9 changes: 5 additions & 4 deletions themer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Themer v1.0.2
* Themer v1.0.3
*
* This plugin enables you to use different themes on one site
* individual set per page or collection.
Expand All @@ -9,7 +9,7 @@
* http://benjamin-regler.de/license/
*
* @package Themer
* @version 1.0.2
* @version 1.0.3
* @link <https://github.com/sommerregen/grav-plugin-themer>
* @author Benjamin Regler <[email protected]>
* @copyright 2015, Benjamin Regler
Expand Down Expand Up @@ -91,8 +91,9 @@ public function onPageInitialized()
$twig->twig_paths = [];
$twig->init();

// Update TwigCollector for DebugBar
if ($enabled && $debug) {
// Update TwigCollector for DebugBar (deprecated since Grav v0.9.43+)
$deprecated = version_compare(GRAV_VERSION, '0.9.43', '<');
if ($deprecated && $enabled && $debug) {
$twig->twig = new TraceableTwigEnvironment($twig->twig);
$collector = $this->grav['debugger']->getCollector('twig');
$collector->twig = $twig->twig;
Expand Down

0 comments on commit 572172c

Please sign in to comment.