diff -r a4642baaf829 -r 4d4862461b8d web/wp-content/plugins/event-calendar/eventcalendar3.php --- a/web/wp-content/plugins/event-calendar/eventcalendar3.php Tue Feb 02 14:45:47 2010 +0000 +++ b/web/wp-content/plugins/event-calendar/eventcalendar3.php Tue Feb 02 15:44:16 2010 +0000 @@ -34,7 +34,7 @@ require_once(dirname(__FILE__).'/tz.php'); -$ec3_today_id = str_replace('_0','_',ec3_strftime("ec3_%Y_%m_%d")); +$ec3_today_id=str_replace('_0','_',ec3_strftime("ec3_%Y_%m_%d")); /** Read the schedule table for the posts, and add an ec3_schedule array @@ -132,7 +132,7 @@ /** Rewrite date restrictions if the query is day- or category- specific. */ -function ec3_filter_posts_where($where) +function ec3_filter_posts_where(&$where) { global $ec3,$wp_query,$wpdb; @@ -225,7 +225,7 @@ } /** */ -function ec3_filter_posts_join($join) +function ec3_filter_posts_join(&$join) { global $ec3,$wpdb; // The necessary joins are decided upon in ec3_filter_posts_where(). @@ -239,7 +239,7 @@ } /** Change the order of event listings (only advanced mode). */ -function ec3_filter_posts_orderby($orderby) +function ec3_filter_posts_orderby(&$orderby) { global $ec3, $wpdb; if($ec3->order_by_start) @@ -263,7 +263,7 @@ /** Eliminate double-listings for posts with >1 scheduled event. */ -function ec3_filter_posts_groupby($groupby) +function ec3_filter_posts_groupby(&$groupby) { global $ec3,$wpdb; if($ec3->join_ec3_sch || $ec3->order_by_start) @@ -278,7 +278,7 @@ /** Add a sched_id field, if we want a listing. */ -function ec3_filter_posts_fields($fields) +function ec3_filter_posts_fields(&$fields) { global $ec3; if($ec3->is_listing && ($ec3->join_ec3_sch || $ec3->order_by_start))