rename url parameter
This commit is contained in:
parent
4715fb12c8
commit
7c4f81bd78
|
@ -786,7 +786,7 @@ Files.lazyLoadPreview = function(path, mime, ready, width, height, etag) {
|
||||||
}
|
}
|
||||||
previewURL = previewURL.replace('(', '%28');
|
previewURL = previewURL.replace('(', '%28');
|
||||||
previewURL = previewURL.replace(')', '%29');
|
previewURL = previewURL.replace(')', '%29');
|
||||||
previewURL += '&always=0';
|
previewURL += '&forceIcon=0';
|
||||||
|
|
||||||
// preload image to prevent delay
|
// preload image to prevent delay
|
||||||
// this will make the browser cache the image
|
// this will make the browser cache the image
|
||||||
|
|
|
@ -11,7 +11,7 @@ $file = array_key_exists('file', $_GET) ? (string)$_GET['file'] : '';
|
||||||
$maxX = array_key_exists('x', $_GET) ? (int)$_GET['x'] : '36';
|
$maxX = array_key_exists('x', $_GET) ? (int)$_GET['x'] : '36';
|
||||||
$maxY = array_key_exists('y', $_GET) ? (int)$_GET['y'] : '36';
|
$maxY = array_key_exists('y', $_GET) ? (int)$_GET['y'] : '36';
|
||||||
$scalingUp = array_key_exists('scalingup', $_GET) ? (bool)$_GET['scalingup'] : true;
|
$scalingUp = array_key_exists('scalingup', $_GET) ? (bool)$_GET['scalingup'] : true;
|
||||||
$always = array_key_exists('always', $_GET) ? (bool)$_GET['always'] : true;
|
$always = array_key_exists('forceIcon', $_GET) ? (bool)$_GET['forceIcon'] : true;
|
||||||
|
|
||||||
if ($file === '') {
|
if ($file === '') {
|
||||||
//400 Bad Request
|
//400 Bad Request
|
||||||
|
|
Loading…
Reference in New Issue