1
0
mirror of synced 2024-12-14 07:06:04 +03:00

Avoid including temporary files like the ones created by vi or emacs

This commit is contained in:
jackbravo 2007-09-03 16:31:35 +00:00
parent f97a652485
commit a6cc048940

View File

@ -73,7 +73,10 @@ spl_autoload_register('autoload');
$models = new DirectoryIterator(dirname(__FILE__) . '/../models/');
foreach($models as $key => $file) {
if ($file->isFile() && ! $file->isDot()) {
require_once $file->getPathname();
$e = explode('.', $file->getFileName());
if (end($e) === 'php') {
require_once $file->getPathname();
}
}
}
//require_once dirname(__FILE__) . '/../models/location.php';