Преглед изворни кода

Fix missing arguments from renderUnescaped

Justin Hileman пре 14 година
родитељ
комит
4bb4e970de
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      Mustache.php

+ 2 - 2
Mustache.php

@@ -617,7 +617,7 @@ class Mustache {
 	 * @return string
 	 */
 	protected function _renderEscaped($tag_name, $leading, $trailing) {
-		return $leading . htmlentities($this->_renderUnescaped($tag_name), ENT_COMPAT, $this->_charset) . $trailing;
+		return htmlentities($this->_renderUnescaped($tag_name, $leading, $trailing), ENT_COMPAT, $this->_charset);
 	}
 
 	/**
@@ -888,4 +888,4 @@ class MustacheException extends Exception {
 	// which can't be handled by this Mustache instance.
 	const UNKNOWN_PRAGMA           = 4;
 
-}
+}