Skip to content

Commit 9e5d651

Browse files
authored
Merge pull request #25 from kimtree/compatible_with_newest_version
Compatible with newest version
2 parents f8dcca9 + 9a9c24f commit 9e5d651

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ codeigniter/
1616
## Requirements
1717

1818
* PHP 5.4.0 or later
19+
* Twig 1.22.0 or later (Also, simply checked with Twig v2.x)
1920

2021
## Installation
2122

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
],
1515
"require": {
1616
"php": ">=5.4.0",
17-
"twig/twig": "~1.20"
17+
"twig/twig": "~1.22"
1818
},
1919
"require-dev": {
2020
"codeigniter/framework": "3.1.*",

libraries/Twig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function __construct($params = [])
9292
$this->config = [
9393
'cache' => APPPATH . 'cache/twig',
9494
'debug' => ENVIRONMENT !== 'production',
95-
'autoescape' => TRUE,
95+
'autoescape' => 'html',
9696
];
9797

9898
$this->config = array_merge($this->config, $params);

0 commit comments

Comments
 (0)