|
From: James A. <th...@us...> - 2001-11-09 08:57:40
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv3015
Modified Files:
groupcp.php viewtopic.php
Log Message:
Checked all calls to message_die and made sure that if they would be outputted to a user
without a major error that they got their error string from the lang file
Also made sure all calls had the right arguments in teh right place
Index: groupcp.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/groupcp.php,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -r1.17 -r1.18
*** groupcp.php 2001/11/03 19:17:06 1.17
--- groupcp.php 2001/11/09 08:57:36 1.18
***************
*** 513,517 ****
if( !$db->sql_numrows($result) )
{
! message_die(GENERAL_MESSAGE, "That user group does not exist");
}
$group_info = $db->sql_fetchrow($result);
--- 513,517 ----
if( !$db->sql_numrows($result) )
{
! message_die(GENERAL_MESSAGE, $lang['Group_not_exist']);
}
$group_info = $db->sql_fetchrow($result);
***************
*** 994,998 ****
if( !$db->sql_numrows($result) )
{
! message_die(GENERAL_MESSAGE, "No groups exist");
}
$group_list = $db->sql_fetchrowset($result);
--- 994,998 ----
if( !$db->sql_numrows($result) )
{
! message_die(GENERAL_MESSAGE, $lang['No_groups_exist']);
}
$group_list = $db->sql_fetchrowset($result);
Index: viewtopic.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/viewtopic.php,v
retrieving revision 1.126
retrieving revision 1.127
diff -C2 -r1.126 -r1.127
*** viewtopic.php 2001/10/26 01:09:08 1.126
--- viewtopic.php 2001/11/09 08:57:36 1.127
***************
*** 46,50 ****
if( !isset($topic_id) && !isset($post_id) )
{
! message_die(GENERAL_MESSAGE, 'Topic_post_not_exist');
}
--- 46,50 ----
if( !isset($topic_id) && !isset($post_id) )
{
! message_die(GENERAL_MESSAGE, $lang['Topic_post_not_exist'], $lang['Error'], __LINE__, __FILE__);
}
***************
*** 76,80 ****
if( !($row = $db->sql_fetchrow($result)) )
{
! message_die(GENERAL_MESSAGE, 'No new posts since your last visit');
}
else
--- 76,80 ----
if( !($row = $db->sql_fetchrow($result)) )
{
! message_die(GENERAL_MESSAGE, $lang['No_new_posts_last_visit']);
}
else
|