Fix "View Diff" buttons on edit attachment page
[WebKit-https.git] / Websites / bugs.webkit.org / js / attachment.js
index 63a102e4ab69b720085b1c55281ba70907630443..66c6b256ff3663cb8be3b2382a7ae4624c8129df 100644 (file)
@@ -265,7 +265,7 @@ function redoEditAsComment(patchviewerinstalled)
 function viewPrettyPatch(attachment_id)
 {
     viewing_formatted_diff = !viewing_formatted_diff;
 function viewPrettyPatch(attachment_id)
 {
     viewing_formatted_diff = !viewing_formatted_diff;
-    var src = "attachment.cgi?id=" . $attachment_id;
+    var src = "attachment.cgi?id=" attachment_id;
     var buttonText = "View Formatted Diff";
     if (viewing_formatted_diff) {
       src += "&action=prettypatch"
     var buttonText = "View Formatted Diff";
     if (viewing_formatted_diff) {
       src += "&action=prettypatch"