From: Roland Hieber Date: Fri, 23 Oct 2009 00:21:52 +0000 (+0200) Subject: fixed broken comment function: Change button had no name X-Git-Tag: REL_9.10.23~3 X-Git-Url: http://git.rohieb.name/iserv-mod-error-reporter.git/commitdiff_plain/14140214c823a58aa105edd78960f4d0b2416913 fixed broken comment function: Change button had no name --- 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(); ?>