Skip to content

Commit

Permalink
Merge pull request #40 from creative-commoners/pulls/4.0/hotfix-for-ssp
Browse files Browse the repository at this point in the history
FIX Require Lookup directly to avoid needing PSR-4 autoloader
  • Loading branch information
fspringveldt authored Jun 26, 2017
2 parents 571833b + af73e5a commit 333e928
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions htdocs/search/lookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

require_once __DIR__ . '/../../vendor/autoload.php';

// 2017-06-27: Cannot run composer dump-autoload on SSP
require_once __DIR__ . '/../../src/Lookup.php';

$lookup = new SilverStripe\ApiDocs\Lookup($_GET);

$lookup->setVersionMap(array(
Expand Down

0 comments on commit 333e928

Please sign in to comment.