From b0d871100257a81ddf929b56db5fd849fa28bff3 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 29 Nov 2016 07:22:45 -0800 Subject: [PATCH] Add .lic as possible license file type --- app/Http/Controllers/LicensesController.php | 2 +- resources/lang/en/admin/licenses/message.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/LicensesController.php b/app/Http/Controllers/LicensesController.php index e8e4c6095c..721846bc92 100755 --- a/app/Http/Controllers/LicensesController.php +++ b/app/Http/Controllers/LicensesController.php @@ -825,7 +825,7 @@ class LicensesController extends Controller foreach (Input::file('licensefile') as $file) { $rules = array( - 'licensefile' => 'required|mimes:png,gif,jpg,jpeg,doc,docx,pdf,txt,zip,rar,rtf|max:2000' + 'licensefile' => 'required|mimes:png,gif,jpg,jpeg,doc,docx,pdf,txt,zip,rar,rtf,lic|max:2000' ); $validator = Validator::make(array('licensefile'=> $file), $rules); diff --git a/resources/lang/en/admin/licenses/message.php b/resources/lang/en/admin/licenses/message.php index ae016bcdfe..77c4041c29 100644 --- a/resources/lang/en/admin/licenses/message.php +++ b/resources/lang/en/admin/licenses/message.php @@ -23,7 +23,7 @@ return array( 'error' => 'File(s) not uploaded. Please try again.', 'success' => 'File(s) successfully uploaded.', 'nofiles' => 'You did not select any files for upload, or the file you are trying to upload is too large', - 'invalidfiles' => 'One or more of your files is too large or is a filetype that is not allowed. Allowed filetypes are png, gif, jpg, doc, docx, pdf, txt, zip, rar, and rtf.', + 'invalidfiles' => 'One or more of your files is too large or is a filetype that is not allowed. Allowed filetypes are png, gif, jpg, jpeg, doc, docx, pdf, txt, zip, rar, rtf, and lic.', ), 'update' => array(