Prepare for embedded mode

This commit is contained in:
Bernd Bestel
2018-07-16 21:17:32 +02:00
parent db9ee93d2b
commit 3b4141eb4d
11 changed files with 36 additions and 15 deletions

View File

@@ -222,7 +222,7 @@ class StockService extends BaseService
throw new \Exception('No barcode lookup plugin defined');
}
$path = __DIR__ . "/../data/plugins/$pluginName.php";
$path = DATAPATH . "/plugins/$pluginName.php";
if (file_exists($path))
{
require_once $path;