Skip to content

Commit

Permalink
Admin needs mime update.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbspringer committed Aug 10, 2013
1 parent 659797b commit efff8ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beerxml-shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ function init() {
if ( ! defined( 'BEERXML_PATH' ) )
define( 'BEERXML_PATH', plugin_dir_path( __FILE__ ) );

require_once( BEERXML_PATH . '/includes/mime.php' );
if ( is_admin() ) {
require_once( BEERXML_PATH . '/includes/admin.php' );
return;
}

require_once( BEERXML_PATH . '/includes/classes.php' );
require_once( BEERXML_PATH . '/includes/mime.php' );

add_shortcode( 'beerxml', array( $this, 'beerxml_shortcode' ) );
}
Expand Down

0 comments on commit efff8ea

Please sign in to comment.