Skip to content

Commit

Permalink
Merge pull request #7 from moxie-lean/fix-plugin
Browse files Browse the repository at this point in the history
Fix a problem with an undefined variable un plugin file
  • Loading branch information
mitogh authored Jun 23, 2016
2 parents 18c16cb + 0f4d242 commit c14d3d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Author: Moxie
Author URI: http://getmoxied.net/
*/
$path = plugin_dir_path( __FILE__ );
$autoload = $path . 'vendor/autoload.php';

if ( file_exists( $autoload ) ) {
Expand All @@ -16,7 +17,6 @@

if ( class_exists( __NAMESPACE__ . '\\Select' ) ) {
$url = plugin_dir_url( __FILE__ );
$path = plugin_dir_path( __FILE__ );
new Select( $url, $path );
} else {
add_action( 'admin_notices', function(){
Expand Down

0 comments on commit c14d3d0

Please sign in to comment.