$f = $msg->getForum();
if (!$f || !is_object($f)) {
- exit_error('Error','Could Not Get Forum Object');
+ exit_error('Error', _('Could Not Get Forum Object'));
} else {
if ( ((user_getid() == $attach_userid) || ($f->userIsAdmin())) && (!$msg->isPending()) ) { //only permit the user who created the attach to delete it, or an admin
$attach .= " <a href=\"javascript:manageattachments('".util_make_url ("/forum/attachment.php?attachid=$attachid&group_id=$group_id&forum_id=$forum_id&msg_id=$msg_id&edit=yes")."','no');\">" . "<font size=\"-3\">" . html_image('ic/forum_edit.gif','37','15',array('alt'=>"Edit")) . "</font></a>";
if (!$f || !is_object($f)) {
exit_error('Error','Could Not Get Forum Object');
} else {
- $attach = html_image('ic/cfolder15.png',"15","13",array("border"=>"0")) . "No attachment found";
+ $attach = html_image('ic/cfolder15.png',"15","13",array("border"=>"0")) . _('No attachment found');
if ( ((user_getid() == $msg->getPosterID()) || ($f->userIsAdmin())) && (!$msg->isPending()) ) { //only permit an admin or the user who created the message to insert an attach
$attach .= " <a href=\"javascript:manageattachments('".util_make_url ("/forum/attachment.php?attachid=0&group_id=$group_id&forum_id=$forum_id&msg_id=$msg_id&edit=yes")."','no');\">" . "<font size=\"-3\">" . html_image('ic/forum_add.gif','37','15',array('alt'=>"Add")) . "</font></a>";
}