From e28b1746e3a9db18c6704648cfdec0f6c7bbd19a Mon Sep 17 00:00:00 2001 From: DariusIII Date: Mon, 12 Mar 2018 09:26:35 +0100 Subject: [PATCH] Update bootstrap/autoload and constants (change and remove non-used constants definitions) --- Changelog | 1 + bootstrap/autoload.php | 8 +--- bootstrap/constants.php | 49 +++++++----------------- composer.lock | 84 +++++++++++++++++++++++++++-------------- 4 files changed, 73 insertions(+), 69 deletions(-) diff --git a/Changelog b/Changelog index 45e4bab35..37d3da751 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-03-12 DariusIII + * Chg: Update bootstrap/autoload and constants (change and remove non-used constants definitions) * Chg: Update ReleaseImage class, try to catch more errors * Chg: Remove reference to non used and non existing config folder * Chg: Update config/logging with new options (bubble, permission and locking) diff --git a/bootstrap/autoload.php b/bootstrap/autoload.php index fefb7c142..1de47069e 100644 --- a/bootstrap/autoload.php +++ b/bootstrap/autoload.php @@ -1,8 +1,8 @@ load(); define('NNTMUX_START', microtime(true)); -define('NN_APP_PATH', dirname(__DIR__).DS.'app'); - -if (! defined('NN_ROOT')) { - define('NN_ROOT', dirname(NN_APP_PATH, 2)); -} +define('NN_APP_PATH', app_path()); if (! defined('HAS_WHICH')) { define('HAS_WHICH', Utility::hasWhich() ? true : false); diff --git a/bootstrap/constants.php b/bootstrap/constants.php index 969264de5..a11613e64 100755 --- a/bootstrap/constants.php +++ b/bootstrap/constants.php @@ -1,6 +1,6 @@