mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Enable dev mode on install, prevent noobs asking white page questions
This commit is contained in:
parent
be78a0fc45
commit
1e8198635e
@ -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);
|
||||
|
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user