Index: weblinks.module
===================================================================
RCS file: /home/repos/drupal/drupal/sites/all/modules/weblinks/weblinks.module,v
retrieving revision 1.7
diff -b -d -u -b -d -u -r1.7 weblinks.module
--- weblinks.module	27 Mar 2007 12:19:34 -0000	1.7
+++ weblinks.module	27 Mar 2007 12:28:58 -0000
@@ -1086,7 +1086,7 @@
 	if (user_access('edit group weblinks')) {$include = _weblinks_get_access();}
 	
 	$result = db_query("
-		SELECT nr.body, n.*, bw.url 
+		SELECT nr.body, nr.format, n.*, bw.url 
 		FROM {node} n
 		INNER JOIN {node_revisions} nr ON nr.vid = n.vid 
 		INNER JOIN {weblinks} bw ON bw.vid = n.vid 
@@ -1125,8 +1125,14 @@
 				}
 				$page_content .= "<li class=\"weblinks\">".l(t($row['title']), $row['url'], $options);
 			}
-			if($description) {$page_content .= "<p>".stripslashes($row['body'])."</p>";}
-			if($info) {$page_content .= '<p class="submitinfo">'.t('created: @cdate by !user ::: updated @udate', array('@cdate' => date("d.m.Y", $row['created']), '!user' => l($user->name, 'user/'.$user->uid), '@udate' => date("d.m.Y", $row['changed']))).'</p>';}
+			if($description) {$page_content .= "<p>".check_markup($row['body'], $row['format'])."</p>";}
+			if($info) {
+        $page_content .= '<p class="submitinfo">';
+        $page_content .= t('created: @cdate by !user ::: updated @udate', array('@cdate' => date("d.m.Y", $row['created']), '!user' => l($user->name, 'user/'.$user->uid), '@udate' => date("d.m.Y", $row['changed'])));
+        if (user_access('administer weblinks'))
+          $page_content .= ' &mdash; '.l(t('edit'), 'node/'.$row['nid'].'/edit', NULL, 'destination='.$_GET['q']);
+        $page_content .= '</p>';
+      }
 			$page_content .= "</li>";
 		}
 	}
