diff --git a/jekyll-exporter.php b/jekyll-exporter.php index bcd6de6f..c75b9fcf 100644 --- a/jekyll-exporter.php +++ b/jekyll-exporter.php @@ -39,8 +39,8 @@ wp_die( 'Jekyll Export requires PHP 5.3 or later' ); } -require_once dirname( __FILE__ ) . '/lib/cli.php'; -require_once dirname( __FILE__ ) . '/vendor/autoload.php'; +require_once __DIR__ . '/lib/cli.php'; +require_once __DIR__ . '/vendor/autoload.php'; use League\HTMLToMarkdown\HtmlConverter; use League\HTMLToMarkdown\Converter\TableConverter; diff --git a/tests/test-wordpress-to-jekyll-exporter.php b/tests/test-wordpress-to-jekyll-exporter.php index 35fd8aa7..a822e06a 100644 --- a/tests/test-wordpress-to-jekyll-exporter.php +++ b/tests/test-wordpress-to-jekyll-exporter.php @@ -412,5 +412,4 @@ function test_copy_recursive() { $this->assertTrue( file_exists( $jekyll_export->dir . '/foo.txt' ) ); $this->assertTrue( file_exists( $jekyll_export->dir . '/folder/foo.txt' ) ); } - }