From ef23ecfe07278fcb9a02fa3fe6a0ca98767ba2d4 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 30 Aug 2009 18:59:07 -0400 Subject: [PATCH] minor refactor for file_exists checks. --- cake/libs/view/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/view/view.php b/cake/libs/view/view.php index 25aa8e045..a4510cf9f 100644 --- a/cake/libs/view/view.php +++ b/cake/libs/view/view.php @@ -854,7 +854,7 @@ class View extends Object { foreach ($paths as $path) { if (file_exists($path . $name . $this->ext)) { return $path . $name . $this->ext; - } elseif (file_exists($path . $name . '.ctp')) { + } elseif ($this->ext != '.ctp' && file_exists($path . $name . '.ctp')) { return $path . $name . '.ctp'; } }