src/cm/media/js/site/c_text_view_comments.js
changeset 144 e7e1bc64f613
parent 103 61fd17f9ab78
child 184 0d9a2a99ffda
--- a/src/cm/media/js/site/c_text_view_comments.js	Wed Feb 03 20:55:30 2010 +0100
+++ b/src/cm/media/js/site/c_text_view_comments.js	Wed Feb 03 21:49:04 2010 +0100
@@ -276,9 +276,9 @@
 				parent.f_removeLoadingMsg();
 			}
 			// if there is a comment id in the url display it
-			if ("comment_key" in gGETValues) {
-				var key = gGETValues["comment_key"] ;
-				var comment = gDb.getCommentByKey(key) ;
+			if ("comment_id_key" in gGETValues) {
+				var id_key = gGETValues["comment_id_key"] ;
+				var comment = gDb.getCommentByIdKey(id_key) ;
 				if (comment != null) {
 					var path = gDb.getPath(comment) ;
 					var topParentComment = path[path.length - 1] ;