Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/acp/config_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public function get_display_vars($mode)
'allow_gif' => array('lang' => 'GIF_ALLOWED', 'validate' => 'bool', 'type' => 'radio:yes_no'),
'allow_jpg' => array('lang' => 'JPG_ALLOWED', 'validate' => 'bool', 'type' => 'radio:yes_no'),
'allow_png' => array('lang' => 'PNG_ALLOWED', 'validate' => 'bool', 'type' => 'radio:yes_no'),
'allow_webp' => array('lang' => 'WEBP_ALLOWED', 'validate' => 'bool', 'type' => 'radio:yes_no'),
'allow_webp' => array('lang' => 'WEBP_ALLOWED', 'validate' => 'bool', 'type' => 'radio:yes_no'),
'allow_zip' => array('lang' => 'ZIP_ALLOWED', 'validate' => 'bool', 'type' => 'radio:yes_no'),
'description_length' => array('lang' => 'IMAGE_DESC_MAX_LENGTH', 'validate' => 'int', 'type' => 'text:7:5', 'append' => 'CHARACTERS'),
'disp_nextprev_thumbnail' => array('lang' => 'DISP_NEXTPREV_THUMB','validate' => 'bool', 'type' => 'radio:yes_no'),
Expand Down
6 changes: 3 additions & 3 deletions core/file/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ static public function mimetype_by_filename($filename)
case '.jpg':
return 'image/jpeg';
break;
case '.webp':
case 'webp':
return 'image/webp';
break;
}
Expand All @@ -149,7 +149,7 @@ static public function extension_by_filename($filename)
case '.jpg':
return 'jpg';
break;
case '.webp':
case 'webp':
return 'webp';
break;
}
Expand Down Expand Up @@ -177,7 +177,7 @@ public function read_image($force_filesize = false)
imagealphablending($this->image, true); // Set alpha blending on ...
imagesavealpha($this->image, true); // ... and save alpha blending!
break;
case '.webp':
case 'webp':
$this->image_type = 'webp';
$this->image = imagecreatefromwebp($this->image_source);
break;
Expand Down
2 changes: 1 addition & 1 deletion core/language/es/gallery_acp.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@
'RECENT_ON_INDEX_COUNT' => 'Conteo de imágenes recientes',
'PHPBB_INTEGRATION' => 'Integración de phpBB',
'PNG_ALLOWED' => 'Permitido subir archivos PNG',
'WEBP_ALLOWED' => 'Allowed to upload WEBP files',
'WEBP_ALLOWED' => 'Permitido subir archivos WEBP',
'PURGED_CACHE' => 'Purgó la caché',

'RATE_SCALE' => 'Escala de calificación',
Expand Down
2 changes: 1 addition & 1 deletion core/language/ru/gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
'FILETYPES_GIF' => 'gif',
'FILETYPES_JPG' => 'jpg',
'FILETYPES_PNG' => 'png',
'FILETYPES_WEBP' => 'webp',
'FILETYPES_WEBP' => 'webp',
'FILETYPES_ZIP' => 'zip',

'FULL_EDITOR_GALLERY' => 'Редактировать',
Expand Down
Loading