diff options
-rw-r--r-- | giglogadmin.php (renamed from gigologadmin.php) | 14 | ||||
-rw-r--r-- | includes/admin/register_db_tables.php | 16 |
2 files changed, 15 insertions, 15 deletions
diff --git a/gigologadmin.php b/giglogadmin.php index 0a3bb94..977acbd 100644 --- a/gigologadmin.php +++ b/giglogadmin.php @@ -2,14 +2,14 @@ /** * Gigolog Admin * - * @package gigologadmin + * @package giglogadmin * @author Andrea Chirulescu, Harald Eilertsen * @copright 2021 Andrea Chirulescu, Harald Eilertsen * @license AGPL-3.0 * * @wordpress-plugin - * Plugin Name: Gigolog Admin - * Plugin URI: https://code.volse.no/wp/plugins/gigologadmin + * Plugin Name: Giglog Admin + * Plugin URI: https://code.volse.no/wp/plugins/giglogadmin * Description: Scheduling journalists and photographers to cover concerts or events. * Version: 0.1.0 * Author: Andrea Chirulescu, Harald Eilertsen @@ -17,8 +17,8 @@ * License URI: https://www.gnu.org/licenses/agpl-3.0.txthttps://www.gnu.org/licenses/agpl-3.0.txt */ -if ( !class_exists( 'GigologAdmin_Plugin' ) ) { - class GigologAdmin_Plugin +if ( !class_exists( 'GiglogAdmin_Plugin' ) ) { + class GiglogAdmin_Plugin { static function activate() { require_once __DIR__ . '/includes/admin/register_db_tables.php'; @@ -28,7 +28,7 @@ if ( !class_exists( 'GigologAdmin_Plugin' ) ) { } } - register_activation_hook( __FILE__, array( 'GigologAdmin_Plugin', 'activate' )); - register_deactivation_hook( __FILE__, array( 'GigologAdmin_Plugin', 'deactivate' )); + register_activation_hook( __FILE__, array( 'GiglogAdmin_Plugin', 'activate' )); + register_deactivation_hook( __FILE__, array( 'GiglogAdmin_Plugin', 'deactivate' )); } ?> 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(); } ?> |