diff --git a/common.php b/common.php index 90b8d1e6..2057e972 100644 --- a/common.php +++ b/common.php @@ -156,7 +156,7 @@ if (file_exists(BASE . 'config.local.php')) { /** @var array $config */ ini_set('log_errors', 1); -if(@$config['env'] === 'dev') { +if(@$config['env'] === 'dev' || defined('MYAAC_INSTALL')) { ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); diff --git a/install/index.php b/install/index.php index d6043d42..6536829e 100644 --- a/install/index.php +++ b/install/index.php @@ -3,9 +3,9 @@ use Twig\Environment as Twig_Environment; use Twig\Loader\FilesystemLoader as Twig_FilesystemLoader; -require '../common.php'; +const MYAAC_INSTALL = true; -define('MYAAC_INSTALL', true); +require '../common.php'; // includes require SYSTEM . 'functions.php';