summaryrefslogtreecommitdiffstats
path: root/giglogadmin.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-09-04 14:45:57 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-09-04 14:45:57 +0200
commit82fff1107a46f9cdaab589e619b03a3c76431c4f (patch)
tree4498e91524c714f2095135b780c2aa16f747df7b /giglogadmin.php
parentf57acecbae89a2782acf6f6b539025385c198366 (diff)
downloadgigologadmin-82fff1107a46f9cdaab589e619b03a3c76431c4f.tar.gz
gigologadmin-82fff1107a46f9cdaab589e619b03a3c76431c4f.tar.bz2
gigologadmin-82fff1107a46f9cdaab589e619b03a3c76431c4f.zip
Update db tables if needed on every load.
No need to deactivate/activate plugin to get the right version of the tables.
Diffstat (limited to 'giglogadmin.php')
-rw-r--r--giglogadmin.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/giglogadmin.php b/giglogadmin.php
index dec54a7..2db1f3b 100644
--- a/giglogadmin.php
+++ b/giglogadmin.php
@@ -24,6 +24,8 @@
if ( !class_exists( 'GiglogAdmin_Plugin' ) ) {
+
+ require_once __DIR__ . '/includes/admin/register_db_tables.php';
require_once __DIR__ . '/includes/public/shortcodes/giglog_bands.php';
require_once __DIR__ . '/includes/public/shortcodes/giglog_display_unprocessed.php';
require_once __DIR__ . '/includes/public/shortcodes/giglog_photographers.php';
@@ -52,7 +54,6 @@ if ( !class_exists( 'GiglogAdmin_Plugin' ) ) {
}
static function activate(): void {
- require_once __DIR__ . '/includes/admin/register_db_tables.php';
}
static function deactivate(): void {