Skip to content

Commit

Permalink
Fix casing of method name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark S committed Sep 14, 2016
1 parent eff0d98 commit 2ad2b21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/View/View.php
Expand Up @@ -486,7 +486,7 @@ public function element($name, array $data = [], array $options = [])
$options['cache'] = $this->_elementCache($name, $data, $options);
}

$file = $this->_getElementFilename($name);
$file = $this->_getElementFileName($name);
if ($file && $options['cache']) {
return $this->cache(function () use ($file, $data, $options) {
echo $this->_renderElement($file, $data, $options);
Expand Down Expand Up @@ -547,7 +547,7 @@ public function cache(callable $block, array $options = [])
*/
public function elementExists($name)
{
return (bool)$this->_getElementFilename($name);
return (bool)$this->_getElementFileName($name);
}

/**
Expand Down

0 comments on commit 2ad2b21

Please sign in to comment.