Update of /cvsroot/easymod/easymod2/mods/easymod/includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18356/mods/easymod/includes
Modified Files:
admin_easymod.php.txt
Log Message:
Fixed preview mode, it now displays something useful when it fails.
Index: admin_easymod.php.txt
===================================================================
RCS file: /cvsroot/easymod/easymod2/mods/easymod/includes/admin_easymod.php.txt,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** admin_easymod.php.txt 9 May 2005 22:00:44 -0000 1.7
--- admin_easymod.php.txt 9 May 2005 22:40:52 -0000 1.8
***************
*** 158,164 ****
global $template, $mode, $lang ;
! // template is not defined if we are displaying/downloading the file so get us out of here
if (($mode == 'display_file') || ($mode == 'download_file'))
{
return ;
}
--- 158,165 ----
global $template, $mode, $lang ;
! // template is not defined if we are displaying/downloading the file so echo the error
if (($mode == 'display_file') || ($mode == 'download_file'))
{
+ echo ( $mode == 'display_file' ) ? '</pre>' . $message . ' :: ' . FAQ_LINK . $lang['EM_FAQ'] . '</a> :: ' . REPORT_LINK . $lang['EM_report'] . '</a><br /><br />' : '';
return ;
}
***************
*** 2266,2270 ****
// didn't find the file! OH CRAP!
! echo $lang['EM_err_modify'] . "\n" ;
exit ;
}
--- 2267,2271 ----
// didn't find the file! OH CRAP!
! echo sprintf($lang['EM_err_modify'], $orig_file) . "\n" ;
exit ;
}
|