mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 16:33:00 +00:00
Add default param to errorimage()
This commit is contained in:
parent
6079fe43b5
commit
dac4684c14
4 changed files with 8 additions and 3 deletions
|
@ -1,5 +1,10 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v0.14-dev
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fixed error image generation in the image previewer under certain conditions.
|
||||||
|
|
||||||
## v0.13
|
## v0.13
|
||||||
(No changes were made between the last beta release and this release)
|
(No changes were made between the last beta release and this release)
|
||||||
|
|
||||||
|
|
|
@ -3900,7 +3900,7 @@ function getsvgsize($svgFilename)
|
||||||
return $imageSize;
|
return $imageSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
function errorimage($text, $target_size)
|
function errorimage($text, $target_size = null)
|
||||||
{
|
{
|
||||||
$width = 640;
|
$width = 640;
|
||||||
$height = 480;
|
$height = 480;
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
"author": "Starbeamrainbowlabs",
|
"author": "Starbeamrainbowlabs",
|
||||||
"description": "Adds the ability to upload files to Pepperminty Wiki. Uploaded files act as pages and have the special 'File\/' prefix.",
|
"description": "Adds the ability to upload files to Pepperminty Wiki. Uploaded files act as pages and have the special 'File\/' prefix.",
|
||||||
"id": "feature-upload",
|
"id": "feature-upload",
|
||||||
"lastupdate": 1482008539,
|
"lastupdate": 1492428125,
|
||||||
"optional": false
|
"optional": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -540,7 +540,7 @@ function getsvgsize($svgFilename)
|
||||||
return $imageSize;
|
return $imageSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
function errorimage($text, $target_size)
|
function errorimage($text, $target_size = null)
|
||||||
{
|
{
|
||||||
$width = 640;
|
$width = 640;
|
||||||
$height = 480;
|
$height = 480;
|
||||||
|
|
Loading…
Reference in a new issue