Index: service_links.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/service_links/service_links.install,v
retrieving revision 1.4
diff -u -p -r1.4 service_links.install
--- service_links.install	31 Jan 2008 17:47:09 -0000	1.4
+++ service_links.install	4 Oct 2008 00:30:58 -0000
@@ -2,6 +2,11 @@
 // $Id: service_links.install,v 1.4 2008/01/31 17:47:09 apsivam Exp $
 
 /**
+ * @file
+ * Installation file for service links module.
+ */
+
+/**
  * Implementation of hook_uninstall().
  */
 function service_links_uninstall() {
Index: service_links.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/service_links/service_links.module,v
retrieving revision 1.26.2.1
diff -u -p -r1.26.2.1 service_links.module
--- service_links.module	25 May 2008 14:48:00 -0000	1.26.2.1
+++ service_links.module	4 Oct 2008 00:30:59 -0000
@@ -284,8 +284,7 @@ function service_links_block($op = 'list
     return $blocks;
   }
   else if ($op == 'view') {
-    if (user_access('access service links') && arg(0) == 'node' && is_numeric(arg(1))) {
-      $node = node_load(arg(1));
+    if (user_access('access service links') && $node = menu_get_object('node')) {
       $links_show = _service_links_show($node);
       if ($links_show) {
         $block['subject'] = t('Bookmark/Search this post');
@@ -434,7 +433,7 @@ function theme_service_links_build_link(
 }
 
 function theme_service_links_node_format($links) {
-  return '<div class="service-links"><div class="service-label">'. t('Bookmark/Search this post with: ') .'</div>'. theme('links', $links) .'</div>';
+  return '<div class="service-links"><div class="service-label">'. t('Bookmark/Search this post with:') .' </div>'. theme('links', $links) .'</div>';
 }
 
 function theme_service_links_block_format($items) {
Index: template.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/service_links/template.php,v
retrieving revision 1.3
diff -u -p -r1.3 template.php
--- template.php	11 Oct 2007 17:24:08 -0000	1.3
+++ template.php	4 Oct 2008 00:30:59 -0000
@@ -8,7 +8,7 @@
  */
 
 function _phptemplate_variables($hook, $vars) {
-  switch($hook) {
+  switch ($hook) {
     case 'node':
     case 'page':
       if (module_exists('service_links')) {
