Skip to content

Commit

Permalink
Filter out core paths from missing view/layout errors.
Browse files Browse the repository at this point in the history
End developers shouldn't be dropping files in /lib/Cake so lets not tell
them to.
  • Loading branch information
markstory committed Jun 19, 2014
1 parent 31956c2 commit 8f3ce9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Cake/View/Errors/missing_layout.ctp
Expand Up @@ -30,6 +30,9 @@
<?php
$paths = $this->_paths($this->plugin);
foreach ($paths as $path):
if (strpos($path, CORE_PATH) !== false) {
continue;
}
echo sprintf('<li>%s%s</li>', h($path), h($file));
endforeach;
?>
Expand Down
3 changes: 3 additions & 0 deletions lib/Cake/View/Errors/missing_view.ctp
Expand Up @@ -28,6 +28,9 @@
<?php
$paths = $this->_paths($this->plugin);
foreach ($paths as $path):
if (strpos($path, CORE_PATH) !== false) {
continue;
}
echo sprintf('<li>%s%s</li>', h($path), h($file));
endforeach;
?>
Expand Down

0 comments on commit 8f3ce9c

Please sign in to comment.