From 8f3ce9c9c47c7d02f8d9f15464b28e48455bb341 Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 19 Jun 2014 10:02:54 -0400 Subject: [PATCH] Filter out core paths from missing view/layout errors. End developers shouldn't be dropping files in /lib/Cake so lets not tell them to. --- lib/Cake/View/Errors/missing_layout.ctp | 3 +++ lib/Cake/View/Errors/missing_view.ctp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lib/Cake/View/Errors/missing_layout.ctp b/lib/Cake/View/Errors/missing_layout.ctp index 700cf50afb0..0b1005520b0 100644 --- a/lib/Cake/View/Errors/missing_layout.ctp +++ b/lib/Cake/View/Errors/missing_layout.ctp @@ -30,6 +30,9 @@ _paths($this->plugin); foreach ($paths as $path): + if (strpos($path, CORE_PATH) !== false) { + continue; + } echo sprintf('
  • %s%s
  • ', h($path), h($file)); endforeach; ?> diff --git a/lib/Cake/View/Errors/missing_view.ctp b/lib/Cake/View/Errors/missing_view.ctp index 023c595ffa0..b2579d57857 100644 --- a/lib/Cake/View/Errors/missing_view.ctp +++ b/lib/Cake/View/Errors/missing_view.ctp @@ -28,6 +28,9 @@ _paths($this->plugin); foreach ($paths as $path): + if (strpos($path, CORE_PATH) !== false) { + continue; + } echo sprintf('
  • %s%s
  • ', h($path), h($file)); endforeach; ?>