Skip to content

Commit

Permalink
[Core] Changed order of module directories (aces#8870)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jeffersoncasimir authored and kongtiaowang committed Nov 29, 2023
1 parent 8666064 commit 61fb54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/AjaxHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 61fb54c

Please # to comment.