mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-10-31 21:33:00 +00:00
page-help: Add formats to data size bar on ?action=help&dev=yes
This commit is contained in:
parent
9bd69b1b01
commit
7aaded1f40
2 changed files with 5 additions and 3 deletions
|
@ -18,6 +18,7 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of t
|
|||
- Preview generation: If php-imagick is not installed but required for a particular operation, return a proper error message
|
||||
- File upload: If fileinfo is not installed, return a proper error message when someone attempts to upload a file
|
||||
- Add `image/avif` (AVIF image), `image/jxl` (JPEG XL image), and `image/heif`/`image/heic` to `upload_allowed_file_types` (you'll need to delete your entry in `peppermint.json` to get the new updated list)
|
||||
- Also added these and `flac` (which was already allowed as an upload by default) to the data size calculator on `?action=help&dev=yes`
|
||||
|
||||
|
||||
## Fixed
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
register_module([
|
||||
"name" => "Help page",
|
||||
"version" => "0.10.1",
|
||||
"version" => "0.10.2",
|
||||
"author" => "Starbeamrainbowlabs",
|
||||
"description" => "Adds a rather useful help page. Access through the 'help' action. This module also exposes help content added to Pepperminty Wiki's inbuilt invisible help section system.",
|
||||
"id" => "page-help",
|
||||
|
@ -95,10 +95,11 @@ register_module([
|
|||
else if(in_array($extension, ["json", "sqlite"])) // It's an index
|
||||
$wikiSize->indexes += $nextFilesize;
|
||||
else if(in_array($extension, [ // It's an uploaded image
|
||||
"jpg", "jpeg", "png", "gif", "webp", "svg"
|
||||
"jpg", "jpeg", "png", "gif", "webp", "svg",
|
||||
"jxl", "avif", "hiec", "hief"
|
||||
]))
|
||||
$wikiSize->images += $nextFilesize;
|
||||
else if(in_array($extension, [ "mp3", "ogg", "wav", "aac", "m4a" ])) // It's an audio file
|
||||
else if(in_array($extension, [ "flac", "mp3", "ogg", "wav", "aac", "m4a" ])) // It's an audio file
|
||||
$wikiSize->audio += $nextFilesize;
|
||||
else if(in_array($extension, [ "avi", "mp4", "m4v", "webm" ])) // It's a video file
|
||||
$wikiSize->videos += $nextFilesize;
|
||||
|
|
Loading…
Reference in a new issue