--- comment_bonus_api.module.orig	2010-04-05 11:48:42.468750000 +0200
+++ comment_bonus_api.module	2010-04-25 00:19:24.018233700 +0200
@@ -7,16 +7,18 @@
  * We will define our own node_show() which will call flexible ajax_comments_render().
  */
 function comment_bonus_api_menu_alter(&$items) {
-  $items['node/%node'] = array(
-    'title callback' => 'node_page_title',
-    'title arguments' => array(1),
-    'page callback' => 'comment_bonus_api_node_page_view',
-    'page arguments' => array(1),
-    'access callback' => 'node_access',
-    'access arguments' => array('view', 1),
-    'type' => MENU_CALLBACK
-  );
-  return $items;
+  if (!module_exists('page_manager')) {
+    $items['node/%node']['page callback'] = 'comment_bonus_api_node_page_view';
+  }
+}
+
+/**
+ * Implementation of hook_page_manager_override().
+ * avoid overriding CTools' page_manager (Panels)
+ * page_manager executes the page_callback after initializing page_manager functions.
+ */
+function comment_bonus_api_page_manager_override($function) {
+  return ($function=='node_view') ? 'comment_bonus_api_node_page_view' : '';
 }
 
 /**
