Replace file_exists() with is_file() in Kohana::modules()

This commit is contained in:
Woody Gilk 2009-06-19 12:43:48 -05:00
parent 9538489efc
commit 0efedad222

View file

@ -333,7 +333,7 @@ final class Kohana {
foreach (self::$_modules as $path) foreach (self::$_modules as $path)
{ {
if (file_exists($path.'init'.EXT)) if (is_file($path.'init'.EXT))
{ {
// Include the module initialization file once // Include the module initialization file once
require_once $path.'init'.EXT; require_once $path.'init'.EXT;