From 14140214c823a58aa105edd78960f4d0b2416913 Mon Sep 17 00:00:00 2001 From: Roland Hieber Date: Fri, 23 Oct 2009 02:21:52 +0200 Subject: [PATCH] fixed broken comment function: Change button had no name --- src/detail.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/detail.php b/src/detail.php index 6561b8f..b091f8f 100644 --- a/src/detail.php +++ b/src/detail.php @@ -65,7 +65,8 @@ $er = $doc->getErrorReportByID($getUid); $strOldComment = $er->getComment(); // Probably we have to update an error report -if($getAction == "update" and $postSubmit == _c("Change")) +echo "PostSubmit: $postSubmit"; +if($getAction == "update" and $postSubmit == _("Change")) { if($cfgErrors->userIsAdmin()) { $postComment = stripslashes(@$_POST["comment"]); @@ -124,8 +125,8 @@ if($cfgErrors->userIsAdmin()) { "Comment written by:"), erGetRealUserName($er->getCommentOwner())); } } -echo sprintf("<{$GLOBALS["smlbtn"]} value='%s' />\n", - _("Change")); +echo sprintf("<{$GLOBALS["smlbtn"]} name='submit' value='%s' ". + "/>\n", _("Change")); echo "

\n"; _PageBlue(); ?> -- 2.20.1