Bugfix: Include the new inverted index in wiki size calculations

This commit is contained in:
Starbeamrainbowlabs 2019-11-10 15:43:24 +00:00
parent 0ef5add3d2
commit 41dc73036d
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<?php
register_module([
"name" => "Help page",
"version" => "0.10",
"version" => "0.10.1",
"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",
@ -88,7 +88,7 @@ register_module([
$wikiSize->history += $nextFilesize;
else if($extension == "md") // It's a page
$wikiSize->pages += $nextFilesize;
else if($extension == "json") // It's an index
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"