Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

modify sample

  • Loading branch information...
commit 646740b1f2bf8cbbb1bda9445b8dfaf921bcb933 1 parent 7d1d340
@okitsu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  examples/sample.php
View
2  examples/sample.php
@@ -15,7 +15,7 @@ function my_autoload($className){
$classPath = str_replace(array_keys($replaces),array_values($replaces),$className);
$fileName = $src . DIRECTORY_SEPARATOR . $classPath . '.php';
- if(is_file($fileName)){
+ if(is_readable($fileName)){
require_once($fileName);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.