mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +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
|
<?php
|
||||||
register_module([
|
register_module([
|
||||||
"name" => "Help page",
|
"name" => "Help page",
|
||||||
"version" => "0.10",
|
"version" => "0.10.1",
|
||||||
"author" => "Starbeamrainbowlabs",
|
"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.",
|
"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",
|
"id" => "page-help",
|
||||||
|
@ -88,7 +88,7 @@ register_module([
|
||||||
$wikiSize->history += $nextFilesize;
|
$wikiSize->history += $nextFilesize;
|
||||||
else if($extension == "md") // It's a page
|
else if($extension == "md") // It's a page
|
||||||
$wikiSize->pages += $nextFilesize;
|
$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;
|
$wikiSize->indexes += $nextFilesize;
|
||||||
else if(in_array($extension, [ // It's an uploaded image
|
else if(in_array($extension, [ // It's an uploaded image
|
||||||
"jpg", "jpeg", "png", "gif", "webp", "svg"
|
"jpg", "jpeg", "png", "gif", "webp", "svg"
|
||||||
|
|
Loading…
Reference in a new issue