mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-22 13:45:02 +00:00
Bugfix: Fixed display of PDF previews
This commit is contained in:
parent
e1a9c78692
commit
5b914abeb3
3 changed files with 9 additions and 9 deletions
|
@ -2489,7 +2489,7 @@ class search
|
|||
|
||||
register_module([
|
||||
"name" => "Uploader",
|
||||
"version" => "0.5",
|
||||
"version" => "0.5.2",
|
||||
"author" => "Starbeamrainbowlabs",
|
||||
"description" => "Adds the ability to upload files to Pepperminty Wiki. Uploaded files act as pages and have the special 'File:' prefix.",
|
||||
"id" => "feature-upload",
|
||||
|
@ -2812,10 +2812,9 @@ register_module([
|
|||
$previewUrl = "?action=preview&size=$settings->default_preview_size&page=" . rawurlencode($env->page);
|
||||
|
||||
$preview_html = "";
|
||||
|
||||
error_log($fileTypeDisplay);
|
||||
switch($fileTypeDisplay)
|
||||
{
|
||||
case "application":
|
||||
case "image":
|
||||
$preview_sizes = [ 256, 512, 768, 1024, 1440 ];
|
||||
$preview_html .= "\t\t\t<figure class='preview'>
|
||||
|
@ -4148,7 +4147,7 @@ register_module([
|
|||
|
||||
register_module([
|
||||
"name" => "Parsedown",
|
||||
"version" => "0.6.1",
|
||||
"version" => "0.6.2",
|
||||
"author" => "Emanuil Rusev & Starbeamrainbowlabs",
|
||||
"description" => "An upgraded (now default!) parser based on Emanuil Rusev's Parsedown Extra PHP library (https://github.com/erusev/parsedown-extra), which is licensed MIT. Please be careful, as this module adds a some weight to your installation, and also *requires* write access to the disk on first load.",
|
||||
"id" => "parser-parsedown",
|
||||
|
|
|
@ -64,11 +64,11 @@
|
|||
},
|
||||
{
|
||||
"name": "Uploader",
|
||||
"version": "0.5",
|
||||
"version": "0.5.2",
|
||||
"author": "Starbeamrainbowlabs",
|
||||
"description": "Adds the ability to upload files to Pepperminty Wiki. Uploaded files act as pages and have the special 'File:' prefix.",
|
||||
"id": "feature-upload",
|
||||
"lastupdate": 1460104228,
|
||||
"lastupdate": 1460185045,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
|
@ -190,11 +190,11 @@
|
|||
},
|
||||
{
|
||||
"name": "Parsedown",
|
||||
"version": "0.6.1",
|
||||
"version": "0.6.2",
|
||||
"author": "Emanuil Rusev & Starbeamrainbowlabs",
|
||||
"description": "An upgraded (now default!) parser based on Emanuil Rusev's Parsedown Extra PHP library (https:\/\/github.com\/erusev\/parsedown-extra), which is licensed MIT. Please be careful, as this module adds a some weight to your installation, and also *requires* write access to the disk on first load.",
|
||||
"id": "parser-parsedown",
|
||||
"lastupdate": 1460184547,
|
||||
"lastupdate": 1460184701,
|
||||
"optional": false
|
||||
}
|
||||
]
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
register_module([
|
||||
"name" => "Uploader",
|
||||
"version" => "0.5.1",
|
||||
"version" => "0.5.2",
|
||||
"author" => "Starbeamrainbowlabs",
|
||||
"description" => "Adds the ability to upload files to Pepperminty Wiki. Uploaded files act as pages and have the special 'File:' prefix.",
|
||||
"id" => "feature-upload",
|
||||
|
@ -326,6 +326,7 @@ register_module([
|
|||
$preview_html = "";
|
||||
switch($fileTypeDisplay)
|
||||
{
|
||||
case "application":
|
||||
case "image":
|
||||
$preview_sizes = [ 256, 512, 768, 1024, 1440 ];
|
||||
$preview_html .= "\t\t\t<figure class='preview'>
|
||||
|
|
Loading…
Reference in a new issue