Skip to content

Commit

Permalink
Fix installer class instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
Frug committed May 9, 2023
1 parent 5159da4 commit 731d7b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/install.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
use AjaxChat\Loader;
/*
* @package AJAX_Chat
* @author Sebastian Tschan
Expand Down Expand Up @@ -82,7 +83,8 @@ function createDataBaseTables($printSuccessConfirmation=true) {
}

// Initialize the chat installer:
$ajaxChatInstaller = new CustomAJAXChatInstaller(AJAX_CHAT_PATH.'src/config.php');
$config = Loader::readConfigFile(AJAX_CHAT_PATH.'src/config.php');
$ajaxChatInstaller = new CustomAJAXChatInstaller($config);

// Create the database tables:
$ajaxChatInstaller->createDataBaseTables();

0 comments on commit 731d7b1

Please sign in to comment.