Code Cleanups

This commit is contained in:
2024-05-31 22:47:04 +02:00
parent 837b371d9c
commit 492d5a0028
40 changed files with 3 additions and 249 deletions

View File

@ -9,7 +9,6 @@ use SearchMemberRequest;
class MainController
{
public const KOMPASS_EVENTS_EVENTS = 'kompass_veranstaltungen_index';
public const KOMPASS_EVENTS_GROUPS = 'kompass_veranstaltungen_gruppen';
public const KOMPASS_EVENTS_PARTICIPANTS = 'kompass_veranstaltungen_teilis';
public static function setup()
@ -18,7 +17,7 @@ class MainController
$charset = $wpdb->get_charset_collate();
$fileReader = new FileAccess();
foreach ([self::KOMPASS_EVENTS_EVENTS, self::KOMPASS_EVENTS_GROUPS, self::KOMPASS_EVENTS_PARTICIPANTS] as $table) {
foreach ([self::KOMPASS_EVENTS_EVENTS, self::KOMPASS_EVENTS_PARTICIPANTS] as $table) {
$sqlTable = $wpdb->prefix . $table;
$sql = "SHOW TABLES LIKE '$sqlTable'";
@ -35,8 +34,6 @@ class MainController
$sqlSetup = str_replace('%charset%', $charset, $sqlSetup);
$sqlSetup = str_replace('%prefix%', $wpdb->prefix, $sqlSetup);
dbDelta( $sqlSetup );
}