diff --git a/build/index.php b/build/index.php index bfe3eb3..3be46ed 100644 --- a/build/index.php +++ b/build/index.php @@ -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
@@ -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", diff --git a/module_index.json b/module_index.json index 9941aae..d0cf8c8 100644 --- a/module_index.json +++ b/module_index.json @@ -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 } ] \ No newline at end of file diff --git a/modules/feature-upload.php b/modules/feature-upload.php index 8ab3a0b..64f12b3 100644 --- a/modules/feature-upload.php +++ b/modules/feature-upload.php @@ -1,7 +1,7 @@ "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