mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-31 01:35:15 +02:00
Ivan - Fix installation with session-prefix
This commit is contained in:
parent
33b843352b
commit
4876304f63
@ -2,6 +2,8 @@
|
|||||||
require_once 'libs/Validator.php';
|
require_once 'libs/Validator.php';
|
||||||
require_once 'models/Session.php';
|
require_once 'models/Session.php';
|
||||||
|
|
||||||
|
use RedBeanPHP\Facade as RedBean;
|
||||||
|
|
||||||
abstract class Controller {
|
abstract class Controller {
|
||||||
private static $dataRequester;
|
private static $dataRequester;
|
||||||
|
|
||||||
@ -14,7 +16,9 @@ abstract class Controller {
|
|||||||
public function getHandler() {
|
public function getHandler() {
|
||||||
return function () {
|
return function () {
|
||||||
try {
|
try {
|
||||||
Session::getInstance()->setSessionPrefix(Setting::getSetting('session-prefix')->getValue());
|
if(RedBean::testConnection() && !Setting::isTableEmpty()) {
|
||||||
|
Session::getInstance()->setSessionPrefix(Setting::getSetting('session-prefix')->getValue());
|
||||||
|
}
|
||||||
$this->validate();
|
$this->validate();
|
||||||
$this->handler();
|
$this->handler();
|
||||||
} catch (\Exception $exception) {
|
} catch (\Exception $exception) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user