images aren't always jpg, so don't force jpg
all the handle_* exts use this as well, which can cause issues
This commit is contained in:
parent
2070034d0d
commit
dd105e174e
2 changed files with 12 additions and 3 deletions
13
.htaccess
13
.htaccess
|
@ -31,8 +31,6 @@
|
||||||
php_flag magic_quotes_runtime 0
|
php_flag magic_quotes_runtime 0
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
DefaultType image/jpeg
|
|
||||||
|
|
||||||
<IfModule mod_expires.c>
|
<IfModule mod_expires.c>
|
||||||
ExpiresActive On
|
ExpiresActive On
|
||||||
<FilesMatch "([0-9a-f]{32}|\.(gif|jpe?g|png|css|js))$">
|
<FilesMatch "([0-9a-f]{32}|\.(gif|jpe?g|png|css|js))$">
|
||||||
|
@ -49,3 +47,14 @@ DefaultType image/jpeg
|
||||||
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
|
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
|
||||||
AddOutputFilterByType DEFLATE application/x-javascript application/javascript
|
AddOutputFilterByType DEFLATE application/x-javascript application/javascript
|
||||||
</ifmodule>
|
</ifmodule>
|
||||||
|
|
||||||
|
DefaultType image/jpeg
|
||||||
|
AddType audio/mp4 f4a f4b m4a
|
||||||
|
AddType audio/ogg oga ogg opus
|
||||||
|
AddType image/bmp bmp
|
||||||
|
AddType image/svg+xml svg svgz
|
||||||
|
AddType image/webp webp
|
||||||
|
AddType video/mp4 f4v f4p m4v mp4
|
||||||
|
AddType video/ogg ogv
|
||||||
|
AddType video/webm webm
|
||||||
|
AddType video/x-flv flv
|
|
@ -388,7 +388,7 @@ class Image {
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function get_image_link() {
|
public function get_image_link() {
|
||||||
return $this->get_link('image_ilink', '_images/$hash/$id%20-%20$tags.$ext', 'image/$id.jpg');
|
return $this->get_link('image_ilink', '_images/$hash/$id%20-%20$tags.$ext', 'image/$id.$ext');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Reference in a new issue