Skip to content

Commit

Permalink
Fix multiple includes in API context; fixes #395
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne committed Feb 22, 2021
1 parent edc7e2d commit 1d25b63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function autoload($classname) {
foreach ($this->paths as $path) {
$test = $path . DIRECTORY_SEPARATOR . $filename;
if (file_exists($test)) {
return include($test);
return include_once($test);
}
}
}
Expand Down

0 comments on commit 1d25b63

Please sign in to comment.