File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
/*
3
- * jQuery File Upload Plugin PHP Class 6.1. 2
3
+ * jQuery File Upload Plugin PHP Class 6.2
4
4
* https://github.com/blueimp/jQuery-File-Upload
5
5
*
6
6
* Copyright 2010, Sebastian Tschan
@@ -34,7 +34,7 @@ class UploadHandler
34
34
'min_height ' => 'Image requires a minimum height '
35
35
);
36
36
37
- function __construct ($ options = null , $ initialize = true ) {
37
+ function __construct ($ options = null , $ initialize = true , $ error_messages = null ) {
38
38
$ this ->options = array (
39
39
'script_url ' => $ this ->get_full_url ().'/ ' ,
40
40
'upload_dir ' => dirname ($ _SERVER ['SCRIPT_FILENAME ' ]).'/files/ ' ,
@@ -109,6 +109,9 @@ function __construct($options = null, $initialize = true) {
109
109
if ($ options ) {
110
110
$ this ->options = array_merge ($ this ->options , $ options );
111
111
}
112
+ if ($ error_messages ) {
113
+ $ this ->error_messages = array_merge ($ this ->error_messages , $ error_messages );
114
+ }
112
115
if ($ initialize ) {
113
116
$ this ->initialize ();
114
117
}
You can’t perform that action at this time.
0 commit comments