- Timestamp:
- Apr 23, 2010, 10:49:33 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/class/xpressD3commentContent.class.php
r261 r583 22 22 if( preg_match( '/[^0-9a-zA-Z_-]/' , $mydirname ) ) die( 'Invalid mydirname' ) ; 23 23 24 $xpress_prefix = $mydirname; 25 if ($xpress_prefix == 'wordpress') $xpress_prefix = 'wp'; 24 $xpress_prefix = preg_replace('/wordpress/','wp',$mydirname); 26 25 27 26 // query … … 74 73 if( preg_match( '/[^0-9a-zA-Z_-]/' , $mydirname ) ) die( 'Invalid mydirname' ) ; 75 74 76 $xpress_prefix = $mydirname; 77 if ($xpress_prefix == 'wordpress') $xpress_prefix = 'wp'; 75 $xpress_prefix = preg_replace('/wordpress/','wp',$mydirname); 78 76 79 77 // query … … 160 158 $post_id = intval( $link_id ) ; 161 159 $mydirname = $this->mydirname ; 162 $xpress_prefix = $mydirname; 163 if ($xpress_prefix == 'wordpress') $xpress_prefix = 'wp'; 160 $xpress_prefix = preg_replace('/wordpress/','wp',$mydirname); 164 161 165 162 $db =& Database::getInstance() ; … … 199 196 if( preg_match( '/[^0-9a-zA-Z_-]/' , $mydirname ) ) die( 'Invalid mydirname' ) ; 200 197 201 $xpress_prefix = $mydirname; 202 if ($xpress_prefix == 'wordpress') $xpress_prefix = 'wp'; 198 $xpress_prefix = preg_replace('/wordpress/','wp',$mydirname); 203 199 204 200 $table_term_relationships = $db->prefix($xpress_prefix."_term_relationships"); … … 273 269 274 270 $mydirname = $this->mydirname ; 275 $xpress_prefix = $mydirname; 276 if ($xpress_prefix == 'wordpress') $xpress_prefix = 'wp'; 271 $xpress_prefix = preg_replace('/wordpress/','wp',$mydirname); 277 272 $d3f_forum_dir = $this->d3forum_dirname; 278 273 … … 419 414 function get_wp_comment_ID($d3forum_post_ID){ 420 415 $xp_prefix = $wpdirname = basename( dirname( dirname( __FILE__ ) ) ) ; 421 if ($xp_prefix == 'wordpress'){ 422 $xp_prefix = 'wp'; 423 } 416 $xp_prefix = preg_replace('/wordpress/','wp',$xp_prefix); 424 417 425 418 $xoopsDB =& Database::getInstance();
Note: See TracChangeset
for help on using the changeset viewer.