Tooo many changes to list
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
use BBRouter\RouteCollection as RouteCollection;
|
||||
use Routes\RouteCollection as RouteCollection;
|
||||
use DDLWrapper\Wrapper as Wrapper;
|
||||
|
||||
RouteCollection::add('CLI', 'sanity/install', function() {
|
||||
RouteCollection::cli('sanity/install', function() {
|
||||
include_once 'classes/Migrator.class.php';
|
||||
|
||||
global $DB;
|
||||
@@ -17,8 +17,11 @@ RouteCollection::add('CLI', 'sanity/install', function() {
|
||||
|
||||
RouteCollection::add('*', '*', function() {
|
||||
global $ROUTE;
|
||||
//App need to be installed
|
||||
if (!is_file(DIR_CONFIG . 'modules.ini')) {
|
||||
$ROUTE->do_block()->set_http_error(500);
|
||||
if(INSTALL_REQUIRE){
|
||||
//App need to be installed
|
||||
if (!is_file(DIR_CONFIG . 'modules.ini')) {
|
||||
$ROUTE->do_block()->set_http_error(500);
|
||||
}
|
||||
}
|
||||
|
||||
}, -19)->do_ignore()->middleware_ignore('auth');
|
||||
Reference in New Issue
Block a user