Revert "Merge branch 'luciferous-master' into dev"
This reverts commit9202a37cf5, reversing changes made to54b5800d42. Using `is_callable` is problematic as the `__call` magic method interferes with context all over the place. See http://hile.mn/buBS11 and http://hile.mn/9vy1S6
This commit is contained in:
+1
-1
@@ -604,7 +604,7 @@ class Mustache {
|
|||||||
protected function _findVariableInContext($tag_name, $context) {
|
protected function _findVariableInContext($tag_name, $context) {
|
||||||
foreach ($context as $view) {
|
foreach ($context as $view) {
|
||||||
if (is_object($view)) {
|
if (is_object($view)) {
|
||||||
if (is_callable(array($view, $tag_name))) {
|
if (method_exists($view, $tag_name)) {
|
||||||
return $view->$tag_name();
|
return $view->$tag_name();
|
||||||
} else if (isset($view->$tag_name)) {
|
} else if (isset($view->$tag_name)) {
|
||||||
return $view->$tag_name;
|
return $view->$tag_name;
|
||||||
|
|||||||
Reference in New Issue
Block a user