Skip to content

Commit

Permalink
WPCIVIUX-164 Minor code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
agileware-iris committed Sep 18, 2024
1 parent c6d07d8 commit 8fd8484
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions civicrm-ux.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
define( 'TEC_HIDE_UPSELL', true );
}

require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
require_once WP_CIVICRM_UX_PLUGIN_PATH . 'vendor/autoload.php';

// Include the upgrader class
require_once WP_CIVICRM_UX_PLUGIN_PATH . 'includes/class-civicrm-ux-upgrader.php';
Expand All @@ -51,7 +51,7 @@
* This action is documented in includes/class-civicrm-ux-activator.php
*/
function activate_civicrm_ux() {
require_once plugin_dir_path( __FILE__ ) . 'includes/class-civicrm-ux-activator.php';
require_once WP_CIVICRM_UX_PLUGIN_PATH . 'includes/class-civicrm-ux-activator.php';
Civicrm_Ux_Activator::activate();
}

Expand All @@ -60,7 +60,7 @@ function activate_civicrm_ux() {
* This action is documented in includes/class-civicrm-ux-deactivator.php
*/
function deactivate_civicrm_ux() {
require_once plugin_dir_path( __FILE__ ) . 'includes/class-civicrm-ux-deactivator.php';
require_once WP_CIVICRM_UX_PLUGIN_PATH . 'includes/class-civicrm-ux-deactivator.php';
Civicrm_Ux_Deactivator::deactivate();
}

Expand All @@ -71,7 +71,7 @@ function deactivate_civicrm_ux() {
* The core plugin class that is used to define internationalization,
* admin-specific hooks, and public-facing site hooks.
*/
require plugin_dir_path( __FILE__ ) . 'includes/class-civicrm-ux.php';
require WP_CIVICRM_UX_PLUGIN_PATH . 'includes/class-civicrm-ux.php';

/**
* Begins execution of the plugin.
Expand Down

0 comments on commit 8fd8484

Please sign in to comment.