Merge pull request #571 from im-mi/develop
Clean up a few superficial errors
This commit is contained in:
commit
61b86da5fe
@ -48,9 +48,9 @@
|
||||
AddOutputFilterByType DEFLATE application/x-javascript application/javascript
|
||||
</ifmodule>
|
||||
|
||||
DefaultType image/jpeg
|
||||
AddType audio/mp4 f4a f4b m4a
|
||||
AddType audio/ogg oga ogg opus
|
||||
AddType image/jpeg jpg jpeg
|
||||
AddType image/bmp bmp
|
||||
AddType image/svg+xml svg svgz
|
||||
AddType image/webp webp
|
||||
|
@ -291,7 +291,7 @@ class Upload extends Extension {
|
||||
|
||||
/**
|
||||
* Handle an upload.
|
||||
* @param string $file
|
||||
* @param string[] $file
|
||||
* @param string[] $tags
|
||||
* @param string|null $source
|
||||
* @param int $replace
|
||||
@ -299,7 +299,7 @@ class Upload extends Extension {
|
||||
*/
|
||||
private function try_upload($file, $tags, $source, $replace=-1) {
|
||||
global $page;
|
||||
assert('is_string($file)');
|
||||
assert('is_array($file)');
|
||||
assert('is_array($tags)');
|
||||
assert('is_string($source) || is_null($source)');
|
||||
assert('is_int($replace)');
|
||||
|
Loading…
x
Reference in New Issue
Block a user