summaryrefslogtreecommitdiffstats
path: root/lib
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 /lib
parentab70b8c26e40174f637a6ecbce7bbabc12519b7e (diff)
downloadnextcloud-server-76b1b5b6a31f8241a369f45da4de99a6dd71e2eb.tar.gz
nextcloud-server-76b1b5b6a31f8241a369f45da4de99a6dd71e2eb.zip
Provide 'enable_avatars' in config.php, to disable avatars
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/base.php b/lib/base.php
index 9f16edd14f5..b66e58f54b4 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -266,11 +266,13 @@ class OC {
OC_Util::addScript('router');
OC_Util::addScript("oc-requesttoken");
- // defaultavatars
- \OC_Util::addScript('placeholder');
- \OC_Util::addScript('3rdparty', 'md5/md5.min');
- \OC_Util::addScript('jquery.avatar');
- \OC_Util::addScript('avatar');
+ // avatars
+ if (\OC_Config::getValue('enable_avatars', true) === true) {
+ \OC_Util::addScript('placeholder');
+ \OC_Util::addScript('3rdparty', 'md5/md5.min');
+ \OC_Util::addScript('jquery.avatar');
+ \OC_Util::addScript('avatar');
+ }
OC_Util::addStyle("styles");
OC_Util::addStyle("apps");