From 3e44bac6e1da2fa326ee370c2b80f69cfc675e66 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 21 Sep 2005 04:05:54 +0000 Subject: [PATCH] r391: Converting some "bad x" messages --- attachment.php | 4 ++-- showhistory.php | 2 +- viewattachment.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/attachment.php b/attachment.php index 1884d6d..48e3768 100755 --- a/attachment.php +++ b/attachment.php @@ -26,14 +26,14 @@ if (isset($bugsys->in['attachmentid'])) $attachment = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "attachment WHERE attachmentid = " . intval($bugsys->in['attachmentid'])); if (!$attachment) { - $message->error(lang::r('alert: bad attachment')); + $message->error(lang::p('error_invalid_id')); } } $bug = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "bug WHERE bugid = " . (($attachment['attachmentid']) ? $attachment['bugid'] : intval($bugsys->in['bugid']))); if (!$bug) { - $message->error(lang::r('alert: bad bug')); + $message->error(lang::p('error_invalid_id')); } // setup logging diff --git a/showhistory.php b/showhistory.php index 9c5505f..4a8f49f 100644 --- a/showhistory.php +++ b/showhistory.php @@ -25,7 +25,7 @@ require_once('./global.php'); $bug = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "bug WHERE bugid = " . intval($bugsys->in['bugid'])); if (!$bug) { - $message->error(lang::r('alert: bad bug')); + $message->error(lang::p('error_invalid_id')); } if ($bug['hidden'] AND !can_perform('canviewhidden')) diff --git a/viewattachment.php b/viewattachment.php index 06aa7d7..83c137c 100755 --- a/viewattachment.php +++ b/viewattachment.php @@ -21,7 +21,7 @@ require_once('./global.php'); $attachment = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "attachment WHERE attachmentid = " . intval($bugsys->in['attachmentid'])); if (!$attachment) { - $message->error(lang::r('alert: bad attachment')); + $message->error(lang::r('error_invalid_id')); } if (!can_perform('cangetattach') AND !can_perform('caneditattach')) -- 2.43.5