27 lines
934 B
Diff
27 lines
934 B
Diff
diff --git a/services/DatabaseService.php b/services/DatabaseService.php
|
|
index ba79a73..e6cf14f 100644
|
|
--- a/services/DatabaseService.php
|
|
+++ b/services/DatabaseService.php
|
|
@@ -29,7 +29,7 @@ class DatabaseService
|
|
|
|
if (GROCY_MODE === 'dev')
|
|
{
|
|
- $logFilePath = GROCY_DATAPATH . '/sql.log';
|
|
+ $logFilePath = getenv('GROCY_SQL_LOG_FILE');;
|
|
if (file_exists($logFilePath))
|
|
{
|
|
file_put_contents($logFilePath, $sql . PHP_EOL, FILE_APPEND);
|
|
diff --git a/services/StockService.php b/services/StockService.php
|
|
index 9f034a5..fd3c0b7 100644
|
|
--- a/services/StockService.php
|
|
+++ b/services/StockService.php
|
|
@@ -1707,7 +1707,7 @@ class StockService extends BaseService
|
|
throw new \Exception('No barcode lookup plugin defined');
|
|
}
|
|
|
|
- $path = GROCY_DATAPATH . "/plugins/$pluginName.php";
|
|
+ $path = getenv('GROCY_PLUGIN_DIR') . "/$pluginName.php";
|
|
if (file_exists($path))
|
|
{
|
|
require_once $path;
|