diff --git a/CHANGELOG.md b/CHANGELOG.md index 797f044..e40a08c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +## [1.1.3] - 2018-03-18 + +### Fixed +* Fix `Notice: Undefined index: TemplateEngineNull` if no template is available for the current page +and debug mode is enabled. + ## [1.1.2] - 2018-03-18 ### Fixed @@ -22,5 +28,6 @@ than the page throwing the 404 exception. * Lower hook priority for the hook executed after `Page::render`. This makes sure that the current active template engine returns the markup *before* other modules hooking after `Page::render`. +[1.1.3]: https://github.com/wanze/TemplateEngineFactory/releases/tag/v1.1.3 [1.1.2]: https://github.com/wanze/TemplateEngineFactory/releases/tag/v1.1.2 [1.1.1]: https://github.com/wanze/TemplateEngineFactory/releases/tag/v1.1.1 \ No newline at end of file diff --git a/TemplateEngineFactory.module.php b/TemplateEngineFactory.module.php index 6e63b3e..3ba6406 100755 --- a/TemplateEngineFactory.module.php +++ b/TemplateEngineFactory.module.php @@ -15,7 +15,7 @@ * * @author Stefan Wanzenried * @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License, version 2 - * @version 1.1.2 + * @version 1.1.3 */ class TemplateEngineFactory extends WireData implements Module, ConfigurableModule { @@ -308,7 +308,7 @@ public static function getModuleInfo() { return array( 'title' => 'Template Engine Factory', - 'version' => 112, + 'version' => 113, 'author' => 'Stefan Wanzenried', 'summary' => 'Provides ProcessWire integration for various template engines such as Twig or Smarty. ', 'href' => 'https://processwire.com/talk/topic/6833-module-templateenginefactory/', diff --git a/TemplateEngineNull.php b/TemplateEngineNull.php index fbde2b1..54ffb38 100755 --- a/TemplateEngineNull.php +++ b/TemplateEngineNull.php @@ -36,4 +36,10 @@ public function render() return ''; } + + /** + * @inheritdoc + */ + protected function initConfig() {} + }