From af73e5afec9563ec1664444a5b232c0075a4eb8f Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Tue, 27 Jun 2017 10:09:00 +1200 Subject: [PATCH] FIX Require Lookup directly to avoid needing PSR-4 autoloader --- htdocs/search/lookup.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/search/lookup.php b/htdocs/search/lookup.php index 78bd1ae..7f41115 100644 --- a/htdocs/search/lookup.php +++ b/htdocs/search/lookup.php @@ -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(