Skip to content

Commit 1ac9a30

Browse files
committed
use __DIR__ constant
otherwise side effect may happen that something else is loaded from include_path
1 parent 432dc4a commit 1ac9a30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_toolkit_loader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
$extlibDir = __DIR__ . '/extlib/';
99

1010
// Load composer
11-
if (file_exists('vendor/autoload.php')) {
12-
require 'vendor/autoload.php';
11+
if (file_exists(__DIR__ .'/vendor/autoload.php')) {
12+
require __DIR__ . '/vendor/autoload.php';
1313
}
1414

1515
// Load now external libs

0 commit comments

Comments
 (0)