Skip to content

Commit 939b577

Browse files
committed
defined environment value in Sam.php
1 parent 1e90a48 commit 939b577

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/Sam.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use mini\core\db\Sqlite;
1212
use mini\core\db\Mysql;
1313

14+
defined('SAM_DEV') or define('SAM_DEV', 'prod');
1415
defined('BASE_PATH') or define('BASE_PATH', dirname(__DIR__));
1516
defined('CONTROLLERS_PATH') or define('CONTROLLERS_PATH', dirname(__DIR__).DIRECTORY_SEPARATOR.'controllers');
1617
defined('MODELS_PATH') or define('MODELS_PATH', dirname(__DIR__).DIRECTORY_SEPARATOR.'models');
@@ -50,7 +51,7 @@ class Sam
5051

5152
public function __construct($config)
5253
{
53-
if (SAM_DEV) {
54+
if (SAM_DEV == 'dev') {
5455
ini_set('display_errors', 1);
5556
}
5657
$this->configs = array_merge($this->defaults(), $config);

0 commit comments

Comments
 (0)