diff --git a/classes/PluginWonderful.php b/classes/PluginWonderful.php
index 216a2c2..5c63a8d 100644
--- a/classes/PluginWonderful.php
+++ b/classes/PluginWonderful.php
@@ -163,7 +163,7 @@ class PluginWonderful {
function show_view($view) {
if (is_object($view) && method_exists($view, 'render')) {
- $info = get_plugin_data(dirname(__FILE__) . '/../plugin-wonderful.php');
+ $info = get_plugin_data(realpath(dirname(__FILE__) . '/../plugin-wonderful.php'));
echo '
';
echo '
';
@@ -373,7 +373,9 @@ class PluginWonderful {
. '" '
. (($instance['adboxid'] == $box->adboxid) ? 'checked="checked"' : "")
. ' />';
- echo $box->adtype . " " . $box->dimensions . " (" . $box->adboxid . ")";
+ echo '
';
+ echo $box->adtype . " " . $box->dimensions . " (" . $box->adboxid . ")";
+ echo '';
echo "";
echo "
";
}
diff --git a/test/PluginWonderfulTest.php b/test/PluginWonderfulTest.php
index 9e505f8..fcc2eb2 100644
--- a/test/PluginWonderfulTest.php
+++ b/test/PluginWonderfulTest.php
@@ -195,7 +195,7 @@ class PluginWonderfulTest extends PHPUnit_Framework_TestCase {
*/
function testShowView($class, $is_success) {
global $wp_test_expectations;
- $wp_test_expectations['plugin_data'][realpath(dirname(__FILE__) . '/../classes/PluginWonderful.php')] = array(
+ $wp_test_expectations['plugin_data'][realpath(dirname(__FILE__) . '/../plugin-wonderful.php')] = array(
'Title' => '**title**',
'Version' => '**version**',
'Author' => '**author**'