From 50142fa772973b833ea2307ae8a6ac3c369bb599 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Mon, 6 Jul 2009 20:34:59 -0400 Subject: [PATCH] force pass by reference, i hate php 4 --- classes/PluginWonderful.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/classes/PluginWonderful.php b/classes/PluginWonderful.php index 882151e..8e926b6 100644 --- a/classes/PluginWonderful.php +++ b/classes/PluginWonderful.php @@ -22,13 +22,13 @@ class PluginWonderful { } function _setup_actions() { - add_action('admin_menu', array($this, 'set_up_menu')); - add_action('init', array($this, 'init')); - add_filter('the_excerpt_rss', array($this, 'insert_rss_feed_ads')); - add_filter('the_content', array($this, 'inject_ads_into_body_copy')); - add_action('widgets_init', array($this, '_load_widgets')); + add_action('admin_menu', array(&$this, 'set_up_menu')); + add_action('init', array(&$this, 'init')); + add_filter('the_excerpt_rss', array(&$this, 'insert_rss_feed_ads')); + add_filter('the_content', array(&$this, 'inject_ads_into_body_copy')); + add_action('widgets_init', array(&$this, '_load_widgets')); - register_activation_hook(__FILE__, array($this, 'handle_activation')); + register_activation_hook(__FILE__, array(&$this, 'handle_activation')); } function _load_widgets() { @@ -39,8 +39,8 @@ class PluginWonderful { register_widget('PluginWonderfulWidget'); } } 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(&$this, 'render_pre28_widget')); + register_widget_control(__('Plugin Wonderful', 'plugin-wonderful'), array(&$this, 'render_pre28_widget_control')); } }