summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-02-24 13:24:10 +0100
committerRobin Appelman <icewind@owncloud.com>2014-02-24 13:24:10 +0100
commit7c4f81bd78b0933928056f6f59020837e1291525 (patch)
treea729a4e53c24b65d7835e35ecc6f3e8f60093bb0
parent4715fb12c8001b8642c2e6dcef57ac216ef92c3d (diff)
downloadnextcloud-server-7c4f81bd78b0933928056f6f59020837e1291525.tar.gz
nextcloud-server-7c4f81bd78b0933928056f6f59020837e1291525.zip
rename url parameter
-rw-r--r--apps/files/js/files.js2
-rw-r--r--core/ajax/preview.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 1f4bd6794f3..f4546120702 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -786,7 +786,7 @@ Files.lazyLoadPreview = function(path, mime, ready, width, height, etag) {
}
previewURL = previewURL.replace('(', '%28');
previewURL = previewURL.replace(')', '%29');
- previewURL += '&always=0';
+ previewURL += '&forceIcon=0';
// preload image to prevent delay
// this will make the browser cache the image
diff --git a/core/ajax/preview.php b/core/ajax/preview.php
index 285af3a8a76..526719e8a1b 100644
--- a/core/ajax/preview.php
+++ b/core/ajax/preview.php
@@ -11,7 +11,7 @@ $file = array_key_exists('file', $_GET) ? (string)$_GET['file'] : '';
$maxX = array_key_exists('x', $_GET) ? (int)$_GET['x'] : '36';
$maxY = array_key_exists('y', $_GET) ? (int)$_GET['y'] : '36';
$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 === '') {
//400 Bad Request