Replace file_exists() with is_file() in Kohana::modules()
This commit is contained in:
parent
9538489efc
commit
0efedad222
|
@ -333,7 +333,7 @@ final class Kohana {
|
|||
|
||||
foreach (self::$_modules as $path)
|
||||
{
|
||||
if (file_exists($path.'init'.EXT))
|
||||
if (is_file($path.'init'.EXT))
|
||||
{
|
||||
// Include the module initialization file once
|
||||
require_once $path.'init'.EXT;
|
||||
|
|
Loading…
Reference in a new issue