summaryrefslogtreecommitdiffstats
path: root/settings/personal.php
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-09-01 18:17:14 +0200
committerkondou <kondou@ts.unde.re>2013-09-01 18:17:14 +0200
commit76b1b5b6a31f8241a369f45da4de99a6dd71e2eb (patch)
treeb36611245988e48707fefde1696d504f7913592f /settings/personal.php
parentab70b8c26e40174f637a6ecbce7bbabc12519b7e (diff)
downloadnextcloud-server-76b1b5b6a31f8241a369f45da4de99a6dd71e2eb.tar.gz
nextcloud-server-76b1b5b6a31f8241a369f45da4de99a6dd71e2eb.zip
Provide 'enable_avatars' in config.php, to disable avatars
Diffstat (limited to 'settings/personal.php')
-rw-r--r--settings/personal.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/settings/personal.php b/settings/personal.php
index 6a6619d5a14..88e8802663d 100644
--- a/settings/personal.php
+++ b/settings/personal.php
@@ -16,8 +16,10 @@ OC_Util::addStyle( 'settings', 'settings' );
OC_Util::addScript( '3rdparty', 'chosen/chosen.jquery.min' );
OC_Util::addStyle( '3rdparty', 'chosen' );
\OC_Util::addScript('files', 'jquery.fileupload');
-\OC_Util::addScript('3rdparty/Jcrop', 'jquery.Jcrop.min');
-\OC_Util::addStyle('3rdparty/Jcrop', 'jquery.Jcrop.min');
+if (\OC_Config::getValue('enable_avatars', true) === true) {
+ \OC_Util::addScript('3rdparty/Jcrop', 'jquery.Jcrop.min');
+ \OC_Util::addStyle('3rdparty/Jcrop', 'jquery.Jcrop.min');
+}
OC_App::setActiveNavigationEntry( 'personal' );
$storageInfo=OC_Helper::getStorageInfo('/');