Update of /cvsroot/easymod/easymod2/mods/easymod/includes
In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv28265/includes
Modified Files:
admin_easymod.php.txt
Log Message:
- fixed bug 1528971 - IN-LINE REPACE WITH action problem
Index: admin_easymod.php.txt
===================================================================
RCS file: /cvsroot/easymod/easymod2/mods/easymod/includes/admin_easymod.php.txt,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** admin_easymod.php.txt 8 Feb 2008 19:26:44 -0000 1.52
--- admin_easymod.php.txt 10 Feb 2008 14:39:51 -0000 1.53
***************
*** 2595,2603 ****
$body[$i] = strip_whitespace($body[$i], true);
! // if there is not exactly 1 line then throw a critical error
! if (count($body[$i]) != 1)
{
! display_error('<b>' . $lang['EM_err_critical_error'] . "</b><br /><br />\n" . $commands[$i]['command'] . $lang['EM_err_inline_body'] . "<br />\n" . $lang['EM_line_num'] . $commands[$i]['line']);
! break;
}
--- 2595,2615 ----
$body[$i] = strip_whitespace($body[$i], true);
! if ($commands[$i]['command'] == 'IN-LINE REPLACE')
{
! // IN-LINE FINDs can be blank or contain actual, at most, one line.
! if (count($body[$i]) > 1)
! {
! display_error('<b>' . $lang['EM_err_critical_error'] . "</b><br /><br />\n" . $commands[$i]['command'] . $lang['EM_err_inline_body'] . "<br />\n" . $lang['EM_line_num'] . $commands[$i]['line']);
! break;
! }
! }
! else
! {
! // if there is not exactly 1 line then throw a critical error
! if (count($body[$i]) != 1)
! {
! display_error('<b>' . $lang['EM_err_critical_error'] . "</b><br /><br />\n" . $commands[$i]['command'] . $lang['EM_err_inline_body'] . "<br />\n" . $lang['EM_line_num'] . $commands[$i]['line']);
! break;
! }
}
|