X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fcompany_preferences.php;h=d020398a8bd94937751d10ec5b36a8fe23c9d8f6;hb=18ccf94f0421e7693bc40e177732a3f937b54d1a;hp=2a9e9b5fe0bc6075e359f3fd76b5ef1e146fe13e;hpb=abd2759fcc8de3cd492933e4a253808956bc52f9;p=fa-stable.git diff --git a/admin/company_preferences.php b/admin/company_preferences.php index 2a9e9b5f..d020398a 100644 --- a/admin/company_preferences.php +++ b/admin/company_preferences.php @@ -1,13 +1,13 @@ . + See the License here . ***********************************************************************/ $page_security =10; $path_to_root=".."; @@ -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))