Skip to content

Commit

Permalink
Update files that use constants.php
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIII committed Jan 8, 2018
1 parent 9b89c88 commit 6af3c91
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions NNBase.php
Original file line number Diff line number Diff line change
@@ -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));
}
Expand Down
1 change: 0 additions & 1 deletion _install/install_nntmux.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
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;
Expand Down
1 change: 0 additions & 1 deletion public/smarty.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion tests/Install/InstallTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6af3c91

Please sign in to comment.