From ed609942c25c92d6b5c0aab2319b658fef6d928c Mon Sep 17 00:00:00 2001 From: Andreas Date: Mon, 30 Sep 2019 14:52:26 +0200 Subject: [PATCH] might have fixed the issue --- dev_mvc/controller/MVCController.php | 4 ++-- dev_mvc/model/testactions/TA_CreateDB.php | 1 + dev_mvc/model/testactions/TA_PopulateDB.php | 2 ++ dev_mvc/model/testactions/TA_TestSQLConnection.php | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dev_mvc/controller/MVCController.php b/dev_mvc/controller/MVCController.php index 8954dc2..7560fb5 100644 --- a/dev_mvc/controller/MVCController.php +++ b/dev_mvc/controller/MVCController.php @@ -69,8 +69,8 @@ class MVCController{ //check if testaction is valid if(file_exists($this->testaction)){ //execute testaction - require_once($this->testaction); - $testactionClassname = "TA_".$_POST['testaction']; + //require_once($this->testaction); + $testactionClassname = "model\testactions\\". "TA_".$_POST['testaction']; $testactionInstance = new $testactionClassname(); } diff --git a/dev_mvc/model/testactions/TA_CreateDB.php b/dev_mvc/model/testactions/TA_CreateDB.php index 945d4a9..6585e23 100644 --- a/dev_mvc/model/testactions/TA_CreateDB.php +++ b/dev_mvc/model/testactions/TA_CreateDB.php @@ -1,6 +1,7 @@