Update files that use constants.php

This commit is contained in:
DariusIII
2018-01-08 12:21:07 +01:00
parent 9b89c88585
commit 6af3c91f12
5 changed files with 3 additions and 5 deletions
+1
View File
@@ -1,4 +1,5 @@
2018-01-08 DariusIII
* Chg: Update files that use constants.php
* Chg: Move constants.php to bootstrap folder, config folder was a bad place
* Chg: Move constants.php to config folder
* Chg: Update simfony components
+2 -2
View File
@@ -1,10 +1,10 @@
<?php
include_once __DIR__.DIRECTORY_SEPARATOR.'nntmux/constants.php';
include_once __DIR__.DIRECTORY_SEPARATOR.'bootstrap/constants.php';
if ($argc > 1) {
$constant = $argv[1];
include_once __DIR__.DIRECTORY_SEPARATOR.'nntmux/constants.php';
include_once __DIR__.DIRECTORY_SEPARATOR.'bootstrap/constants.php';
if (defined($constant)) {
exit(constant($constant));
}
-1
View File
@@ -4,7 +4,6 @@ if (! defined('NN_INSTALLER')) {
define('NN_INSTALLER', true);
}
require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'bootstrap/autoload.php';
include_once dirname(__DIR__).DIRECTORY_SEPARATOR.'nntmux'.DIRECTORY_SEPARATOR.'constants.php';
use nntmux\db\DB;
use App\Models\User;
-1
View File
@@ -18,7 +18,6 @@
* @author niel
* @copyright 2015 NN
*/
require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'nntmux'.DIRECTORY_SEPARATOR.'constants.php';
require_once NN_ROOT.DS.'bootstrap'.DS.'autoload.php';
use nntmux\config\Configure;
-1
View File
@@ -14,7 +14,6 @@
namespace tests;
require_once \dirname(__DIR__, 2) . DIRECTORY_SEPARATOR . 'bootstrap/autoload.php';
include_once \dirname(__DIR__, 2) . DIRECTORY_SEPARATOR . 'nntmux' . DIRECTORY_SEPARATOR . 'constants.php';
use App\Extensions\util\Versions;
use App\Models\User;