Skip to content

Commit

Permalink
Fix notice in debug mode if not template is available for current page
Browse files Browse the repository at this point in the history
  • Loading branch information
wanze committed Mar 24, 2018
1 parent 9b6c05f commit 3412c0f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
4 changes: 2 additions & 2 deletions TemplateEngineFactory.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @author Stefan Wanzenried <stefan.wanzenried@gmail.com>
* @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
{
Expand Down Expand Up @@ -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/',
Expand Down
6 changes: 6 additions & 0 deletions TemplateEngineNull.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,10 @@ public function render()
return '';
}


/**
* @inheritdoc
*/
protected function initConfig() {}

}

0 comments on commit 3412c0f

Please sign in to comment.