Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
fix path problem
Browse files Browse the repository at this point in the history
use WordPress helper function plugin_dir_path rather than building it by hand
  • Loading branch information
Eric Teubert committed Feb 28, 2013
1 parent d9d4ee1 commit 072449b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions podlove-web-player/podlove-web-player.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,8 @@


/* global-ish init variables */
$pluginpath = explode( "/", __FILE__ );
$plugindir = '/' . $pluginpath[ count( $pluginpath ) - 2 ] . '/';

$podlovewebplayer_index = 1;
define( 'PODLOVEWEBPLAYER_DIR', WP_PLUGIN_URL . $plugindir );
define( 'PODLOVEWEBPLAYER_DIR', plugin_dir_path( __FILE__ ) );
define( 'PODLOVEWEBPLAYER_MEJS_DIR', PODLOVEWEBPLAYER_DIR . 'libs/mediaelement/build/' );

/* Activation and De-Activation */
Expand All @@ -57,9 +54,7 @@ function podlovewebplayer_remove() {


/* create custom plugin settings menu */

include_once( WP_PLUGIN_DIR . $plugindir . 'settings.php' );

include_once( PODLOVEWEBPLAYER_DIR . 'settings.php' );

/* embed javascript files */

Expand Down

0 comments on commit 072449b

Please sign in to comment.