Index: nodecomment.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/nodecomment/nodecomment.module,v
retrieving revision 1.3.2.15.2.17.2.1
diff -u -r1.3.2.15.2.17.2.1 nodecomment.module
--- nodecomment.module	26 May 2009 05:33:15 -0000	1.3.2.15.2.17.2.1
+++ nodecomment.module	26 May 2009 20:41:16 -0000
@@ -407,7 +407,7 @@
       'type' => $comment_type,
       'comment_target_nid' => $node->nid,
     );
-    require_once drupal_get_path('module', 'node') . '/node.pages.inc';
+    module_load_include('inc', 'node', 'node.pages');
     return drupal_get_form($comment_type .'_node_form', $new_node);
   }
 }
Index: nodecomment.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/nodecomment/nodecomment.install,v
retrieving revision 1.1.2.4.2.6.2.1
diff -u -r1.1.2.4.2.6.2.1 nodecomment.install
--- nodecomment.install	26 May 2009 05:33:15 -0000	1.1.2.4.2.6.2.1
+++ nodecomment.install	26 May 2009 20:41:16 -0000
@@ -14,8 +14,8 @@
 function _nodecomment_install_type_create() {
   // During install profiles, node and user modules aren't yet loaded.
   // Ensure they're loaded before calling node_get_types().
-  include_once './'. drupal_get_path('module', 'node') .'/node.module';
-  include_once './'. drupal_get_path('module', 'user') .'/user.module';
+  drupal_load('module', 'node');
+  drupal_load('module', 'user');
   $types = node_get_types();
   $types = array_change_key_case($types, CASE_LOWER);
 
