Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a public path related bug.

  • Loading branch information...
commit 0f38614202b3d12796b5df140337ae51b5248b19 1 parent bf39a7f
@mptre authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 goodold-email-templates.php
View
6 goodold-email-templates.php
@@ -15,11 +15,13 @@ class Goodold_email_templates {
const VERSION = '2.0';
private $_action;
+ private $_dir;
private $_key;
private $_options;
function __construct() {
$this->_action = (isset($_GET['action'])) ? $_GET['action'] : NULL;
+ $this->_dir = basename(dirname(__FILE__));
$this->_key = (isset($_GET['key'])) ? $_GET['key'] : NULL;
$this->_options = get_option(self::ID);
}
@@ -44,14 +46,14 @@ function init_admin() {
wp_register_style(
self::ID,
- plugins_url('goodold-email-templates') . '/goodold-email-templates.css',
+ plugins_url($this->_dir) . '/goodold-email-templates.css',
NULL,
self::VERSION
);
wp_register_script(
self::ID,
- plugins_url('goodold-email-templates') . '/goodold-email-templates.js',
+ plugins_url($this->_dir) . '/goodold-email-templates.js',
array('jquery'),
self::VERSION,
TRUE
Please sign in to comment.
Something went wrong with that request. Please try again.