Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Sources/IntegrationHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -662,13 +662,15 @@ final protected static function loadFile(string $file, bool $silent = false): bo
]);
}

$path = Config::canonicalPath($path);

// Load the file if it can be loaded.
if (is_file($path)) {
require_once $path;
}
// No? Try a fallback to Config::$sourcedir.
else {
$path = Config::$sourcedir . '/' . $file;
$path = Config::canonicalPath(Config::$sourcedir . '/' . $file;

if (is_file($path)) {
require_once $path;
Expand Down
Loading