Commit a6cc0489 authored by jackbravo's avatar jackbravo

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

parent f97a6524
......@@ -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';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment