Browse Source

_ prefix protected var

AD7six 12 years ago
parent
commit
0b3583dd5a
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/View/Helper/StringTemplateTrait.php

+ 6 - 6
src/View/Helper/StringTemplateTrait.php

@@ -27,7 +27,7 @@ trait StringTemplateTrait {
  *
  * @var \Cake\View\StringTemplate
  */
-	protected $templater;
+	protected $_templater;
 
 /**
  * Get/set templates to use.
@@ -62,22 +62,22 @@ trait StringTemplateTrait {
  */
 	public function templater() {
 
-		if (empty($this->templater)) {
+		if (empty($this->_templater)) {
 			$class = $this->config('templateClass') ?: '\Cake\View\StringTemplate';
-			$this->templater = new $class;
+			$this->_templater = new $class;
 
 			$templates = $this->config('templates');
 
 			if ($templates) {
 				if (is_string($templates)) {
-					$this->templater->load($templates);
+					$this->_templater->load($templates);
 				} else {
-					$this->templater->add($templates);
+					$this->_templater->add($templates);
 				}
 			}
 		}
 
-		return $this->templater;
+		return $this->_templater;
 	}
 
 }