Permalink
Browse files

Use StringTemplate constructor.

  • Loading branch information...
1 parent ff9de4e commit d2d0258390e71acb1975eb950f9778720b8661a7 @markstory markstory committed Jan 15, 2014
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/View/Helper/StringTemplateTrait.php
@@ -37,8 +37,7 @@
* @return void
*/
public function initStringTemplates($templates = [], $templateClass = '\Cake\View\StringTemplate') {
- $this->_templater = new $templateClass();
- $this->_templater->add($templates);
+ $this->_templater = new $templateClass($templates);
if (isset($this->settings['templates'])) {
$this->_templater->load($this->settings['templates']);
}

0 comments on commit d2d0258

Please sign in to comment.