Skip to content

Commit

Permalink
Merge pull request #91 from dd32/patch-1
Browse files Browse the repository at this point in the history
Use absolute require file paths
  • Loading branch information
zahardev authored Jul 27, 2022
2 parents efd400d + 6d4c81a commit bd9b312
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions seriously-simple-stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@

use SeriouslySimpleStats\Classes\Stats;

require_once 'vendor/autoload.php';

define( 'SSP_STATS_VERSION', '1.3.0' );
define( 'SSP_STATS_DIR_PATH', trailingslashit( plugin_dir_path( __FILE__ ) ) );

require_once SSP_STATS_DIR_PATH . 'vendor/autoload.php';

if ( ! function_exists( 'is_ssp_active' ) ) {
require_once 'ssp-includes/ssp-functions.php';
require_once SSP_STATS_DIR_PATH . 'ssp-includes/ssp-functions.php';
}

if ( is_ssp_active( '1.13.1' ) ) {
Expand Down

0 comments on commit bd9b312

Please sign in to comment.