summaryrefslogtreecommitdiffstats
path: root/lib/preview.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-08-29 10:08:53 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-08-29 10:08:53 +0200
commit70b6e2161ec654f7049027bf6dc5072c1eda4d5e (patch)
treee9980c0025156a7bd626d659b408013452bd64b3 /lib/preview.php
parentb16a018da99259278ba2f93f1e0c2d2e2bce6fb0 (diff)
downloadnextcloud-server-70b6e2161ec654f7049027bf6dc5072c1eda4d5e.tar.gz
nextcloud-server-70b6e2161ec654f7049027bf6dc5072c1eda4d5e.zip
invert logic of disable_previews
Diffstat (limited to 'lib/preview.php')
-rwxr-xr-xlib/preview.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/preview.php b/lib/preview.php
index a8a8580e229..164ad10ba5f 100755
--- a/lib/preview.php
+++ b/lib/preview.php
@@ -569,9 +569,9 @@ class Preview {
* @return void
*/
private static function initProviders() {
- if(\OC_Config::getValue('disable_previews', false)) {
+ if(!\OC_Config::getValue('enable_previews', true)) {
$provider = new Preview\Unknown();
- self::$providers = array($provider);
+ self::$providers = array($provider->getMimeType() => $provider);
return;
}
@@ -606,7 +606,7 @@ class Preview {
}
public static function isMimeSupported($mimetype) {
- if(\OC_Config::getValue('disable_previews', false)) {
+ if(!\OC_Config::getValue('enable_previews', true)) {
return false;
}