diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2014-05-14 17:58:10 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2014-05-14 17:58:10 +0200 |
| commit | e0f69ba3ebc233b416eb83553bb9460075195d1a (patch) | |
| tree | 5384ee163631c67b301d5dd0b8645dc224d38538 /scripts/index.php | |
| parent | a1b772ed96d84480ece5c35eb4c95b692fb63ecc (diff) | |
| download | phorkie-e0f69ba3ebc233b416eb83553bb9460075195d1a.tar.gz phorkie-e0f69ba3ebc233b416eb83553bb9460075195d1a.zip | |
use stream_resolve_include_path
Diffstat (limited to 'scripts/index.php')
| -rw-r--r-- | scripts/index.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/index.php b/scripts/index.php index 5da912e..c1e67af 100644 --- a/scripts/index.php +++ b/scripts/index.php @@ -9,9 +9,7 @@ set_include_path( spl_autoload_register( function ($class) { $file = str_replace(array('\\', '_'), '/', $class) . '.php'; - $hdl = @fopen($file, 'r', true); - if ($hdl !== false) { - fclose($hdl); + if (stream_resolve_include_path($file)) { require $file; } } |
