Changeset 419
- Timestamp:
- Oct 23, 2009, 8:21:10 PM (15 years ago)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/XPressMU/xpressme_integration_kit/wp-content/plugins/xpressme/include/notify_functions.php
r352 r419 78 78 function do_CommentNotifications($commentID, $comment_post_ID) 79 79 { 80 global $xoops_config , $xoops_db; 81 82 $xpress_prefix = get_wp_prefix() ; 83 84 $table_term_relationships = $xpress_prefix .'term_relationships'; 85 $table_term_taxonomy = $xpress_prefix .'term_taxonomy'; 86 $table_terms = $xpress_prefix .'terms'; 87 $table_categories = $xpress_prefix .'categories'; 88 $wp_post = $xpress_prefix .'posts'; 89 $wp_options = $xpress_prefix .'options'; 90 $wp_users = $xpress_prefix .'users'; 91 $wp_comments = $xpress_prefix .'comments'; 80 global $wpdb, $xoops_config , $xoops_db; 81 82 $table_term_relationships = $wpdb->term_relationships; 83 $table_term_taxonomy = $wpdb->term_taxonomy; 84 $table_terms = $wpdb->terms; 85 $table_categories = $wpdb->categories; 86 $wp_post = $wpdb->posts; 87 $wp_options = $wpdb->options; 88 $wp_users = $wpdb->users; 89 $wp_comments = $wpdb->comments; 90 92 91 $post_id = $comment_post_ID; 93 92 … … 128 127 function do_PostNotifications($post_id,$not_event) 129 128 { 130 global $xoops_config, $xoops_db; 131 132 129 global $wpdb, $xoops_config, $xoops_db; 133 130 134 131 // $not_event: newpost,editpost ; $commentID, $comment_post_ID) 135 136 $xpress_prefix = get_wp_prefix() ; 137 138 $table_term_relationships = $xpress_prefix .'term_relationships'; 139 $table_term_taxonomy = $xpress_prefix .'term_taxonomy'; 140 $table_terms = $xpress_prefix .'terms'; 141 $table_categories = $xpress_prefix .'categories'; 142 $wp_post = $xpress_prefix .'posts'; 143 $wp_options = $xpress_prefix .'options'; 144 $wp_users = $xpress_prefix .'users'; 145 $wp_comments = $xpress_prefix .'comments'; 132 133 $table_term_relationships = $wpdb->term_relationships; 134 $table_term_taxonomy = $wpdb->term_taxonomy; 135 $table_terms = $wpdb->terms; 136 $table_categories = $wpdb->categories; 137 $wp_post = $wpdb->posts; 138 $wp_options = $wpdb->options; 139 $wp_users = $wpdb->users; 140 $wp_comments = $wpdb->comments; 146 141 147 142 $post_title = get_the_title($post_id); -
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/notify_functions.php
r352 r419 78 78 function do_CommentNotifications($commentID, $comment_post_ID) 79 79 { 80 global $xoops_config , $xoops_db; 81 82 $xpress_prefix = get_wp_prefix() ; 83 84 $table_term_relationships = $xpress_prefix .'term_relationships'; 85 $table_term_taxonomy = $xpress_prefix .'term_taxonomy'; 86 $table_terms = $xpress_prefix .'terms'; 87 $table_categories = $xpress_prefix .'categories'; 88 $wp_post = $xpress_prefix .'posts'; 89 $wp_options = $xpress_prefix .'options'; 90 $wp_users = $xpress_prefix .'users'; 91 $wp_comments = $xpress_prefix .'comments'; 80 global $wpdb, $xoops_config , $xoops_db; 81 82 $table_term_relationships = $wpdb->term_relationships; 83 $table_term_taxonomy = $wpdb->term_taxonomy; 84 $table_terms = $wpdb->terms; 85 $table_categories = $wpdb->categories; 86 $wp_post = $wpdb->posts; 87 $wp_options = $wpdb->options; 88 $wp_users = $wpdb->users; 89 $wp_comments = $wpdb->comments; 90 92 91 $post_id = $comment_post_ID; 93 92 … … 128 127 function do_PostNotifications($post_id,$not_event) 129 128 { 130 global $xoops_config, $xoops_db; 131 132 129 global $wpdb, $xoops_config, $xoops_db; 133 130 134 131 // $not_event: newpost,editpost ; $commentID, $comment_post_ID) 135 136 $xpress_prefix = get_wp_prefix() ; 137 138 $table_term_relationships = $xpress_prefix .'term_relationships'; 139 $table_term_taxonomy = $xpress_prefix .'term_taxonomy'; 140 $table_terms = $xpress_prefix .'terms'; 141 $table_categories = $xpress_prefix .'categories'; 142 $wp_post = $xpress_prefix .'posts'; 143 $wp_options = $xpress_prefix .'options'; 144 $wp_users = $xpress_prefix .'users'; 145 $wp_comments = $xpress_prefix .'comments'; 132 133 $table_term_relationships = $wpdb->term_relationships; 134 $table_term_taxonomy = $wpdb->term_taxonomy; 135 $table_terms = $wpdb->terms; 136 $table_categories = $wpdb->categories; 137 $wp_post = $wpdb->posts; 138 $wp_options = $wpdb->options; 139 $wp_users = $wpdb->users; 140 $wp_comments = $wpdb->comments; 146 141 147 142 $post_title = get_the_title($post_id);
Note: See TracChangeset
for help on using the changeset viewer.