mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-22 13:45:02 +00:00
Bugfix: Include the new inverted index in wiki size calculations
This commit is contained in:
parent
0ef5add3d2
commit
41dc73036d
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue