mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
Update files that use constants.php
This commit is contained in:
@@ -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
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user