| 464 |
} |
} |
| 465 |
|
|
| 466 |
/** |
/** |
| 467 |
|
* force an update of the sequences table |
| 468 |
|
* |
| 469 |
|
*/ |
| 470 |
|
function _import_type_force_comment_seq() { |
| 471 |
|
|
| 472 |
|
db_query('LOCK TABLES {sequences} WRITE'); |
| 473 |
|
$id = db_result(db_query("SELECT MAX(cid) FROM {comments}")) + 1; |
| 474 |
|
db_query("REPLACE INTO {sequences} VALUES ('comments_cid', %d)", $id); |
| 475 |
|
db_query('UNLOCK TABLES'); |
| 476 |
|
|
| 477 |
|
} |
| 478 |
|
|
| 479 |
|
/** |
| 480 |
* Save the content into the database, first the blogs, then the comments |
* Save the content into the database, first the blogs, then the comments |
| 481 |
*/ |
*/ |
| 482 |
function _import_typepad_save($currentBlog, $terms){ |
function _import_typepad_save($currentBlog, $terms){ |
| 534 |
} |
} |
| 535 |
} |
} |
| 536 |
|
|
| 537 |
|
// force seq table update |
| 538 |
|
_import_type_force_comment_seq(); |
| 539 |
|
|
| 540 |
} |
} |
| 541 |
?> |
?> |