diff options
author | Georg Ehrke <georg@ownCloud.com> | 2013-05-17 11:30:44 +0200 |
---|---|---|
committer | Georg Ehrke <georg@ownCloud.com> | 2013-05-17 11:30:44 +0200 |
commit | f29b8cf68531844c23c45a210e280769a8cece73 (patch) | |
tree | 8111efb052ddefc0145f26fe8636379063122ecc /lib/preview.php | |
parent | 8dba46912d19bf976b24e0c097368f2e56ccb97b (diff) | |
download | nextcloud-server-f29b8cf68531844c23c45a210e280769a8cece73.tar.gz nextcloud-server-f29b8cf68531844c23c45a210e280769a8cece73.zip |
set default value of scalingup to true
Diffstat (limited to 'lib/preview.php')
-rwxr-xr-x | lib/preview.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/preview.php b/lib/preview.php index 44b551006f1..3b6e0ae131e 100755 --- a/lib/preview.php +++ b/lib/preview.php @@ -53,7 +53,7 @@ class OC_Preview { * false if thumbnail does not exist * path to thumbnail if thumbnail exists */ - public function __construct($user = null, $root = '', $file = '', $maxX = 0, $maxY = 0, $scalingup = false){ + public function __construct($user = null, $root = '', $file = '', $maxX = 0, $maxY = 0, $scalingup = true){ //set config $this->max_x = OC_Config::getValue('preview_max_x', null); $this->max_y = OC_Config::getValue('preview_max_y', null); @@ -493,7 +493,7 @@ class OC_Preview { * use: ?scalingup=0 / ?scalingup = 1 * do not use ?scalingup=false / ?scalingup = true as these will always be true */ - $scalingup = false; + $scalingup = true; if(array_key_exists('file', $_GET)) $file = (string) urldecode($_GET['file']); if(array_key_exists('x', $_GET)) $maxX = (int) $_GET['x']; @@ -517,7 +517,7 @@ class OC_Preview { $file = ''; $maxX = 0; $maxY = 0; - $scalingup = false; + $scalingup = true; $token = ''; $user = null; |