Skip to content

Commit

Permalink
Fix prepend include path (#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpedrie authored Mar 28, 2018
1 parent ddc538f commit 1ced0b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ErrorReporting/src/prepend.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
if (file_exists(__DIR__ . '/../../vendor/autoload.php')) {
// when running from a git clone.
require_once __DIR__ . '/../../vendor/autoload.php';
} elseif (file_exists(__DIR__ . '/../../../vendor/autoload.php')) {
} elseif (file_exists(__DIR__ . '/../../../../vendor/autoload.php')) {
// when running from google/cloud-error-reporting installation.
require_once __DIR__ . '/../../../vendor/autoload.php';
require_once __DIR__ . '/../../../../vendor/autoload.php';
} elseif (file_exists(__DIR__ . '/../../../../../vendor/autoload.php')) {
// when running from google/cloud installation.
require_once __DIR__ . '/../../../../../vendor/autoload.php';
Expand All @@ -54,9 +54,9 @@ function getPsrBatchLogger()
// when running from a git clone
return include __DIR__ . '/../../' . $bootstrapFile;
}
if (file_exists(__DIR__ . '/../../../' . $bootstrapFile)) {
if (file_exists(__DIR__ . '/../../../../' . $bootstrapFile)) {
// when running from a google/cloud-error-reporting installation.
return include __DIR__ . '/../../../' . $bootstrapFile;
return include __DIR__ . '/../../../../' . $bootstrapFile;
}
if (file_exists(__DIR__ . '/../../../../../' . $bootstrapFile)) {
// when running from google/cloud installation.
Expand Down

0 comments on commit 1ced0b7

Please sign in to comment.