/[drupal]/contributions/modules/import_typepad/import_typepad.module
ViewVC logotype

Diff of /contributions/modules/import_typepad/import_typepad.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.7.2.3, Tue Jan 22 00:27:14 2008 UTC revision 1.7.2.4, Tue Jan 22 00:34:23 2008 UTC
# Line 464  function _import_typepad_get_nodes($path Line 464  function _import_typepad_get_nodes($path
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){
# Line 521  function _import_typepad_save($currentBl Line 534  function _import_typepad_save($currentBl
534    }    }
535  }  }
536    
537    // force seq table update
538    _import_type_force_comment_seq();
539    
540  }  }
541  ?>  ?>

Legend:
Removed from v.1.7.2.3  
changed lines
  Added in v.1.7.2.4

  ViewVC Help
Powered by ViewVC 1.1.2