Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
perf(backordering): improve check for loaded backorder module
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSchwarz-cnic committed Aug 27, 2021
1 parent 86ffd55 commit 71d263a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ public static function getSearchConfiguration($currencyid, $backorderEngineOn =
*/
public static function loadBackorderAPI()
{
$r = self::getAddOnConfigurationValue('ispapibackorder', 'access');
if ($r === "1") {
$activeAddOns = explode(",", $GLOBALS["CONFIG"]["ActiveAddonModules"]);
if (in_array("ispapibackorder", $activeAddOns)) {
$path = implode(DIRECTORY_SEPARATOR, [ROOTDIR,"modules","addons","ispapibackorder","backend","api.php"]);
if (file_exists($path)) {
require_once($path);
Expand Down

0 comments on commit 71d263a

Please sign in to comment.