Merge branch 'feature/partial-loader' into dev

This commit is contained in:
Justin Hileman
2012-01-08 16:20:35 -08:00
5 changed files with 151 additions and 1 deletions
+4 -1
View File
@@ -819,7 +819,10 @@ class Mustache {
* @return string
*/
protected function _getPartial($tag_name) {
if (is_array($this->_partials) && isset($this->_partials[$tag_name])) {
if (
(is_array($this->_partials) || $this->_partials instanceof ArrayAccess)
&& isset($this->_partials[$tag_name])
) {
return $this->_partials[$tag_name];
}