X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fcompany_preferences.php;h=b889aeb96031bbdedc115bdc56463648ce74a897;hb=927ebef2443b6dda544056e33ec84b71d2bdb6c2;hp=9a7b772b3ae8b3f2082b8ff9724ebd9ab2b2f3d0;hpb=5b8f4c4b4aa8cf996bc071f116bfce1273200fa2;p=fa-stable.git diff --git a/admin/company_preferences.php b/admin/company_preferences.php index 9a7b772b..b889aeb9 100644 --- a/admin/company_preferences.php +++ b/admin/company_preferences.php @@ -52,9 +52,9 @@ if (isset($_POST['update']) && $_POST['update'] != "") display_error(_('Only jpg and png files are supported - a file extension of .jpg or .png is expected')); $input_error = 1; } - elseif ( $_FILES['pic']['size'] > ($max_image_size * 1024)) + elseif ( $_FILES['pic']['size'] > ($SysPrefs->max_image_size * 1024)) { //File Size Check - display_error(_('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') . ' ' . $SysPrefs->max_image_size); $input_error = 1; } elseif ( $_FILES['pic']['type'] == "text/plain" )