From 61fb54c6f0bd2f9200d36ba101d1c1253a165f37 Mon Sep 17 00:00:00 2001 From: jeffersoncasimir <15801528+jeffersoncasimir@users.noreply.github.com> Date: Thu, 24 Aug 2023 14:05:58 -0400 Subject: [PATCH] [Core] Changed order of module directories (#8870) This change enables the use of project modules for requests that use AjaxHelper. The order in which the directories are defined, when the LorisInstance is instantiated, determines the order of locations where modules are searched for and registered. --- htdocs/AjaxHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/AjaxHelper.php b/htdocs/AjaxHelper.php index fcc936b7efd..09dff46b3db 100644 --- a/htdocs/AjaxHelper.php +++ b/htdocs/AjaxHelper.php @@ -94,7 +94,7 @@ $loris = new \LORIS\LorisInstance( new \Database(), new \NDB_Config(), - [__DIR__ . "/../modules", __DIR__ . "/../project/modules"] + [__DIR__ . "/../project/modules", __DIR__ . "/../modules"] ); $m = $loris->getModule($Module);