X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fcompany_preferences.php;h=f5b0bc68f061bbb073ae2acb78891fa3e7551a32;hb=c5c02144e4d60928f888af90060318649e03cdec;hp=2a9e9b5fe0bc6075e359f3fd76b5ef1e146fe13e;hpb=abd2759fcc8de3cd492933e4a253808956bc52f9;p=fa-stable.git diff --git a/admin/company_preferences.php b/admin/company_preferences.php index 2a9e9b5f..f5b0bc68 100644 --- a/admin/company_preferences.php +++ b/admin/company_preferences.php @@ -46,17 +46,17 @@ if (isset($_POST['update']) && $_POST['update'] != "") //But check for the worst if (strtoupper(substr(trim($_FILES['pic']['name']), strlen($_FILES['pic']['name']) - 3)) != 'JPG') { - display_notification(_('Only jpg files are supported - a file extension of .jpg is expected')); + display_error(_('Only jpg files are supported - a file extension of .jpg is expected')); $input_error = 1; } elseif ( $_FILES['pic']['size'] > ($max_image_size * 1024)) { //File Size Check - display_notification(_('The file size is over the maximum allowed. The maximum size allowed in KB is') . ' ' . $max_image_size); + display_error(_('The file size is over the maximum allowed. The maximum size allowed in KB is') . ' ' . $max_image_size); $input_error = 1; } elseif ( $_FILES['pic']['type'] == "text/plain" ) { //File type Check - display_notification( _('Only graphics files can be uploaded')); + display_error( _('Only graphics files can be uploaded')); $input_error = 1; } elseif (file_exists($filename))