summaryrefslogtreecommitdiffstats
path: root/includes/admin/register_db_tables.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-01-17 20:48:09 +0100
committerHarald Eilertsen <haraldei@anduin.net>2021-01-17 21:24:21 +0100
commit6554ae2e81a9aef9d55ddacb3eaf6014f88f8502 (patch)
tree585a0378598e5312ed7bec7515813af8de7f7bdf /includes/admin/register_db_tables.php
parent5c0d96cc7cd1b4b477f264d7dec73c652d3b4490 (diff)
downloadgigologadmin-6554ae2e81a9aef9d55ddacb3eaf6014f88f8502.tar.gz
gigologadmin-6554ae2e81a9aef9d55ddacb3eaf6014f88f8502.tar.bz2
gigologadmin-6554ae2e81a9aef9d55ddacb3eaf6014f88f8502.zip
Fix embarrasing misnaming of module.
Diffstat (limited to 'includes/admin/register_db_tables.php')
-rw-r--r--includes/admin/register_db_tables.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/includes/admin/register_db_tables.php b/includes/admin/register_db_tables.php
index c6d40f5..a54e2c8 100644
--- a/includes/admin/register_db_tables.php
+++ b/includes/admin/register_db_tables.php
@@ -1,6 +1,6 @@
<?php
-if (!function_exists('gigologadmin_populate_countries')) {
- function gigologadmin_populate_countries()
+if (!function_exists('giglogadmin_populate_countries')) {
+ function giglogadmin_populate_countries()
{
global $wpdb;
$wpdb->query(
@@ -247,13 +247,13 @@ if (!function_exists('gigologadmin_populate_countries')) {
}
}
-if ( !function_exists( "gigolog_register_db_tables") ) {
- $db_version = get_option('gigologadmin_db_version');
+if ( !function_exists( "giglog_register_db_tables") ) {
+ $db_version = get_option('giglogadmin_db_version');
if ($db_version == 1) {
return;
}
- function gigolog_register_db_tables() {
+ function giglog_register_db_tables() {
$bands_table =
"CREATE TABLE IF NOT EXISTS `wpg_bands` (
`id` int(11) NOT NULL AUTO_INCREMENT,
@@ -358,7 +358,7 @@ if ( !function_exists( "gigolog_register_db_tables") ) {
}
}
- gigologadmin_populate_countries();
+ giglogadmin_populate_countries();
$wpdb->query(
"ALTER TABLE `wpg_countries`
@@ -389,10 +389,10 @@ if ( !function_exists( "gigolog_register_db_tables") ) {
FOREIGN KEY (`venue`)
REFERENCES `wpg_venues` (`id`) ON DELETE NO ACTION;");
- update_option("gigologadmin_db_version", 1);
+ update_option("giglogadmin_db_version", 1);
}
- gigolog_register_db_tables();
+ giglog_register_db_tables();
}
?>