From 86962ea6a8a626ca1f02b31a808c178f49a8497d Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 1 Jul 2009 11:57:36 -0400 Subject: [PATCH] duh, use the right variable --- plugin-wonderful.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin-wonderful.php b/plugin-wonderful.php index 60df4c2..ac1b185 100644 --- a/plugin-wonderful.php +++ b/plugin-wonderful.php @@ -46,8 +46,8 @@ add_filter('the_content', array($plugin_wonderful, 'inject_ads_into_body_copy')) if (version_compare($wp_version, "2.8", ">=")) { add_action('widgets_init', '__plugin_wonderful_load_widgets'); } else { - register_sidebar_widget(__('Plugin Wonderful', 'plugin-wonderful'), array($this, 'render_pre28_widget')); - register_widget_control(__('Plugin Wonderful', 'plugin-wonderful'), array($this, 'render_pre28_widget_control')); + register_sidebar_widget(__('Plugin Wonderful', 'plugin-wonderful'), array($plugin_wonderful, 'render_pre28_widget')); + register_widget_control(__('Plugin Wonderful', 'plugin-wonderful'), array($plugin_wonderful, 'render_pre28_widget_control')); } register_activation_hook(__FILE__, array($plugin_wonderful, 'handle_activation'));